Whenever we import the database we need to install the passport as it is not able to access the previous client secret. We need to change the new client secret after it is installed in the projects to all the locations required.
php artisan passport:install
For generating key we use the following command
php artisan key:generate
Then we need to run few commands for convenience so that we don’t get errors.
In this tutorial we will learn about Array data type in PHP, before that you can see all the data types in PHP given below:
In PHP we have a special data type where we can assign number of values in single variable using array.
For example: $a = array(10,20,30);
In PHP, there are three types of arrays:
Indexed array:- PHP indexed array is an array which is represented by an index number by default. All elements of array are represented by an index number which starts from 0. PHP indexed array can store numbers, strings or any object. PHP indexed array is also known as numeric array.
We can also use <pre> tag to print both the key and value in the output.
Another way to write the array in PHP which shows the same output as above:
Crud is simply the basis of any web/app development features. All we have to do on any web page is Creating, Reading, Deleting, or Updating the content and that is known as the acronym CRUD. In this blog, we learn about how we perform CRUD operation in Laravel 5.8(PHP framework).
Step 0: Prerequisite
Install xampp a PHP development environment. (Version 7.4 best suited for 5.8 Laravel)
Install composer(to install libraries of Php for any application).
Install VS code(Code-editor).
Step 1 : Download/install Laravel 5.8
Go to command prompt and then go to the xampp folder in C drive by cmd. [C:\xampp\htdocs\]