TECHNICALSTUDY

The associate of technical study article for computer science students which could gain the knowledge about to technicals like Computer history, hard disk, printer,central processing unit etc. Technicalstudy also considered software engineering, operating system and some chunks of programming languages.

Email subscription

Enter your email address:

Delivered by FeedBurner

Sunday, September 17, 2023

LARAVEL 9 Absolute Basic POINTs For CRUD

 ============ Laravel 9 Command ================

1) - sudo mv composer.phar /usr/local/bin/composer (for globalliy install)


2) - To check Composer :  php composer.phar


3) - Install Laravel : composer create-project laravel/laravel example-app


4) - To Run Project : php artisan serve


5) - Project Permission In Ubuntu : sudo chmod 777 -R userdealApp/


6) - Create for DB migration: php artisan migrate   (Create table in DB)


7) - create to table  cmd: php artisan make: migration create_Companies_table


8)- update table php artisan make: migration update_companies_table (update table)


9)- To Create Model : php artisan make:model Company.  (Name must be camelcase and singlular)


10) - php artisan make:model Company -m


11)- To Create Controller:  php artisan make:controller CompanyController --resource. 


12)- php artisan optimize:clear 



=========== CRUD ===========  

1- how to print base_url : <?php echo url('') ?>


2- Store Form Data  : $request->input('name');

  Note : Use @csrf before form tag when 419 page expired issues occured.

  

3- Redirect url : return redirect('/admin');  


No comments:

Post a Comment

Adbox