One To One Relationship in Laravel

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now What is One To One relationships and usage of hasOne() and belongsTo() ? One to one relationships are very straightforward in Laravel. Make sure that one of the tables has a key that references the id of the other table. For example, an ‘address’ table will have a field called user_id . That will reference the

Read more

Simple view of add file into git repository

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now How to add File in Git repositery or import project into Git ? Install Git, use git-bash and goto git directory into git-bash by: $ cd c:/git Now open ‘Git-hub’ in browser or software and just create a ‘new’ repository by clicking create repository with new repository name. you can add readme file. This

Read more

Eloquent ORM Model for Database in Laravel

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now What is Laravel eloquent ORM ? Laravel includes Eloquent, an object-relational mapper (ORM) that makes it enjoyable to interact with your database. In addition to retrieving records from the database table, Eloquent models allow you to insert, update, and delete records from the table as well. The Eloquent ORM included with Laravel provides a simple Active Record

Read more

Create Laravel Migration table into a Database

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now 1. What are Migrations and Migration table in Laravel? Laravel Migration is an essential feature in Laravel that allows you to “easily create a table in your database“. It allows you to create and modify the application’s database schema. You can modify the table by adding a new column or deleting an existing column. Migrations

Read more

Introduction to ‘CRUD’ Operation in Laravel

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now What is CRUD and its purpose ? The full form meaning of CRUD is “Create” “Retrieve” “Update” and “Delete“. In computer programming, create, read, update, and delete (CRUD) are the four basic operations of persistent storage. CRUD is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information using computer-based

Read more

Using of Variable, Keys and Tuples

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now What is variable in programming languages? In computer programming, a variable is a storage location (identified by a memory address) paired with an associated symbolic name. It contains some known or unknown quantity of information referred to as a value. Finally A variable is a container for a particular type of data (like integer, float,

Read more

Manual indexing of an Array in Php!

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now What is Array’s Manual indexing? when we create our own indexing in an array is known manual indexing. in which we change default indexing starting from zero ‘0’ index. we can keep values in our own indexing using “=>“this operator. for example. Syntax “index => values“, separated by commas, define index and values. Index

Read more

Using String interpolation in php

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now String interpolation is quick shortcut, allowing to pop up the value of a variable into double quoted String. Remember that any variable with “$” sign into single quote is not a variable, it just treat as a statement. eg. ‘$num is not a variable’ because num variable is written into single quote.

Read more

Here document use in php

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now php here document is another way to display the text. In this a token is use in which write multiple line without any quotes like:

Read more

How to run Php First program in Xampp server.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Step 1: First install to xampp server by official link https://www.apachefriends.org/download.html, after that you need to open server to start Apache server. And also start mysql for phpadmin. Step 2: Now open any browser in your pc and just type this url: http://localhost and then server run for interprete any php code. Step 3:

Read more