Tumgik
readymadecode · 2 years
Text
How to add QA Schema in Laravel Views
How to add QA Schema in Laravel Views
How to add QA Schema in Laravel Views Just add this code in head section of your layout view <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "QAPage", "mainEntity": { "@type": "Question", "name": "Question Title", "text": "Question Description", "answerCount": 1, "acceptedAnswer": { "@type": "Answer", "upvoteCount": 10, "text": "Answer Description", "url":…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
How to add Job Schema in Laravel Views
How to add Job Schema in Laravel Views
How to add Job Schema in Laravel Views Just add this code in head section of your layout view <script type="application/ld+json"> { "@context" : "https://schema.org/", "@type" : "JobPosting", "title" : "Job Title", "description" : "Job Description", "identifier": { "@type": "PropertyValue", "name": "Job Type or Job Category", "value": "POST_your_unique_id" }, "datePosted" :…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Copy users in laravel
Copy users in laravel
Copy users in laravel public function copyUser(){ if(User::where('id', $id)->count() > 0){ $user = User::find($id); $new_user = $user->replicate()->fill([ 'email' => '[email protected]' ]); $new_user->save(); } } For more code examples click here. Read laravel replicate models.
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Find duplicate users in laravel
Find duplicate users in laravel
Find duplicate users in laravel public function duplicateUsers(){ $users = User::all(); $unique_users = $users->unique(['email']); $duplicates = $users->diff($unique_users); return $duplicates; } For more code examples click here. Read laravel collections.
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Full Stack Developer Job - Remote Job
Full Stack Developer Job – Remote Job
Full Stack Developer Job – Remote Job with required skills in HTML, CSS, Javascript, ReactJS, Angular, NodeJS, MongoDB, MySQL, Laravel. Salary INR 12-14 Lakh Per Year. Description Full Job Description We are looking for a Full Stack Developer to produce scalable software solutions. You’ll be responsible for the full software development life cycle, from conception to deployment. As a Full…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Front End Developer(React) - Remote Job - Salary 10 - 12 Lakh/Year
Front End Developer(React) – Remote Job – Salary 10 – 12 Lakh/Year
Front End Developer(React) – Remote Job – Salary 10 – 12 Lakh/Year with required skills Next.js, React.js, Redux, Javascript. Job Description We are looking for a Web Developer to produce beautiful & scalable web applications. You’ll be part of a cross-functional team that’s responsible for the full software development life cycle, from conception to deployment.As a Web Developer, you should be…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Wordpress exclude specific category from blog page
WordPress exclude specific category from blog page
WordPress exclude specific category from blog page function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '-126' ); } } add_action( 'pre_get_posts', 'exclude_category' ); Here, 126 is category id and minus sign tells to exclude. click for more WordPress codes, read in detail about WordPress Categories and WordPress Query.
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Mern Stack Developer / Full Stack Developer Job - Remote Job
Mern Stack Developer / Full Stack Developer Job – Remote Job
Mern Stack Developer / Full Stack Developer Job – Remote Job with required skills HTML, CSS, JavaScript, React, AWS, Git, APIs and Salary is INR 14 – 20 Lakh/Year. Requirements For Mern Stack Developer / Full Stack Developer Job – Remote Job: You can rock with your expertise in fundamental front-end languages such as HTML, CSS, and JavaScript.You can make value additions aided by your…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Senior ReactJS Developer
About RootQuotient : RootQuotient is a leading global digital services and software engineering company with an aim to create a positive impact on the world through technology. Our technologists think disruptively to deliver pragmatic solutions for our clients’ most complex challenges. We are curious minds who come together as collaborative and inclusive teams to push boundaries, free to be…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Senior FullStack Developer
Apply for the Senior FullStack Developer Job with required skills PHP, MYSQL, HTML, Laravel, JavaScript, CSS, AWS, SASS, REST, SOAP, JSON and pay package would be 10-16 Lakh Per Year. Requirements For Senior FullStack Developer: Bachelor or Masters in Computer Science or related fields.Design and develop high-quality object-oriented code using PHP and popular frameworks.Have the ability to lead…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Using async useffect in React
Using async useffect in React
Using async useffect in React const [profile, setProfile] = useState([]); useffect(() => { const getProfile = async () => { let response = await fetch('https://example.com/api/user/1'); let data = await response.json(); setProfile(data); }; getProfile(); }, []); click for more React codes, read about react doc
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Loop through components in React
Loop through components in React
Loop through components in React render () { const comp_render = []; for (let dt of this.state.your_data) { comp_render.push(<MyComponent>{dt}</MyComponent>); } return ( <> {comp_render} </> ); } click for more React codes, read about react doc
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Download File in React
Download File in React
Download File in React downloadFile = () => { fetch('https://example.com/pdf-file-url', { method: 'GET', headers: { 'Content-Type': 'application/pdf', } }) .then((response) => response.blob()) .then((blobData) => { const url = window.URL.createObjectURL( new Blob([blobData]), ); const link = document.createElement('a'); link.href =…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
React add array to state
React add array to state
React add array to state this.setState({ user_ids: [...this.state.user_ids, 25] }); this.setState({ user_ids: [...this.state.user_ids, ...[1,2,3] ] }); this.setState(prevState => ({ user_ids: [...prevState.user_ids, users] })); click for more React codes, read about react doc
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
How to access image from public folder in react
How to access image from public folder in react
How to access image from public folder in react <img src={process.env.PUBLIC_URL + '/images/logo.jpg'} /> <img src={window.location.origin + '/images/logo.jpg'} /> click for more React codes, read about react doc
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Nginx Increase File Upload Size
Nginx Increase File Upload Size
By default in our nginx configuration the file upload size limit is 1 MB and here we will in Nginx Increase File Upload Size. Nginx Increase File Upload Size Open Nginx Configuration file sudo nano /etc/nginx/nginx.conf Update client_max_body_size If you want to increase the limit for all server blocks then simply update client_max_body_size as given below. http { client_max_body_size…
Tumblr media
View On WordPress
0 notes
readymadecode · 2 years
Text
Allow null records in Laravel relationship
Allow null records in Laravel relationship
Allow null records in Laravel relationship public function post() { return $this->belongsTo(Post::class)->withDefault(); } //default value if null relationship public function post() { return $this->belongsTo(Post::class)->withDefault([ 'comment' => 'No comments', ]); } For more code examples click here. Read laravel relationship.
Tumblr media
View On WordPress
0 notes