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":…
View On WordPress
0 notes
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" :…
View On WordPress
0 notes
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.
View On WordPress
0 notes
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.
View On WordPress
0 notes
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…
View On WordPress
0 notes
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…
View On WordPress
0 notes
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.
View On WordPress
0 notes
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…
View On WordPress
0 notes
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…
View On WordPress
0 notes
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…
View On WordPress
0 notes
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
View On WordPress
0 notes
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
View On WordPress
0 notes
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 =…
View On WordPress
0 notes
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
View On WordPress
0 notes
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
View On WordPress
0 notes
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…
View On WordPress
0 notes
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.
View On WordPress
0 notes