PHP Classes

Laravel 9 CRUD Example: Example of CRUD application using Laravel 9

Recommend this page to a friend!
  Info   View files Documentation   View files View files (91)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-07-15 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 96 All time: 9,697 This week: 135Up
Version License PHP version Categories
laravel-9-crud-examp 1.0.0GNU General Publi...8Libraries, Content management, Design..., P...
Description Author

This package provides an example of a CRUD application using Laravel 9.

It implements models, views, and controller classes based on Laravel 9 for a Web application and a Web API that allows the users to manage blog posts.

The applications can create, update, delete and read database table records that store information of each post published by the application using a Post controller class.

Innovation Award
PHP Programming Innovation award nominee
July 2022
Number 8
Laravel is a well-known PHP development framework. In version 9, it introduced new improvements, including taking advantage of PHP 8 new features.

This package implements an example of a CRUD application based on Laravel 9.

Manuel Lemos
Picture of Ali YILMAZ
  Performance   Level  
Name: Ali YILMAZ <contact>
Classes: 15 packages by
Country: Turkey Turkey
Age: ???
All time rank: 261343 in Turkey Turkey
Week rank: 162 Up4 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 7x

Details

Laravel 9 CRUD Example

Example of create, update, delete and read operations in laravel 9 version.

Download

Step 1 (download the project.)

git clone https://github.com/aliyilmaz/laravel-9-crud-example.git

Step 2 (install packages.)

composer install

Step 3 (Create the database. Update database information in .env file.)

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

Install

php artisan migrate

Run

php artisan serve

Test

http://127.0.0.1:8000/posts
  Files folder image Files  
File Role Description
Files folder imageapp (5 directories)
Files folder imagebootstrap (1 file, 1 directory)
Files folder imageconfig (15 files)
Files folder imagedatabase (3 directories)
Files folder imagelang (1 directory)
Files folder imagepublic (2 files)
Files folder imageresources (2 directories)
Files folder imageroutes (4 files)
Files folder imagestorage (2 directories)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .env Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file vite.config.js Data Auxiliary data

  Files folder image Files  /  app  
File Role Description
Files folder imageConsole (1 file)
Files folder imageExceptions (1 file)
Files folder imageHttp (1 file, 2 directories)
Files folder imageModels (2 files)
Files folder imageProviders (5 files)

  Files folder image Files  /  app  /  Console  
File Role Description
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Exceptions  
File Role Description
  Plain text file Handler.php Class Class source

  Files folder image Files  /  app  /  Http  
File Role Description
Files folder imageControllers (2 files)
Files folder imageMiddleware (8 files)
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  
File Role Description
  Plain text file Controller.php Class Class source
  Plain text file PostController.php Class Class source

  Files folder image Files  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file EncryptCookies.php Class Class source
  Plain text file PreventRequestsDuringMaintenance.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustHosts.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files  /  app  /  Models  
File Role Description
  Plain text file Post.php Class Class source
  Plain text file User.php Class Class source

  Files folder image Files  /  app  /  Providers  
File Role Description
  Plain text file AppServiceProvider.php Class Class source
  Plain text file AuthServiceProvider.php Class Class source
  Plain text file BroadcastServiceProvider.php Class Class source
  Plain text file EventServiceProvider.php Class Class source
  Plain text file RouteServiceProvider.php Class Class source

  Files folder image Files  /  bootstrap  
File Role Description
Files folder imagecache (2 files)
  Plain text file app.php Class Class source

  Files folder image Files  /  bootstrap  /  cache  
File Role Description
  Accessible without login Plain text file packages.php Aux. Auxiliary script
  Accessible without login Plain text file services.php Aux. Auxiliary script

  Files folder image Files  /  config  
File Role Description
  Plain text file app.php Class Class source
  Plain text file auth.php Class Class source
  Accessible without login Plain text file broadcasting.php Aux. Auxiliary script
  Accessible without login Plain text file cache.php Aux. Auxiliary script
  Accessible without login Plain text file cors.php Aux. Auxiliary script
  Accessible without login Plain text file database.php Aux. Auxiliary script
  Accessible without login Plain text file filesystems.php Aux. Auxiliary script
  Accessible without login Plain text file hashing.php Aux. Auxiliary script
  Plain text file logging.php Class Class source
  Accessible without login Plain text file mail.php Aux. Auxiliary script
  Accessible without login Plain text file queue.php Aux. Auxiliary script
  Plain text file sanctum.php Class Class source
  Accessible without login Plain text file services.php Aux. Auxiliary script
  Accessible without login Plain text file session.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files  /  database  
File Role Description
Files folder imagefactories (1 file)
Files folder imagemigrations (5 files)
Files folder imageseeders (1 file)

  Files folder image Files  /  database  /  factories  
File Role Description
  Plain text file UserFactory.php Class Class source

  Files folder image Files  /  database  /  migrations  
File Role Description
  Plain text file 2014_10_12_000000_create_users_table.php Class Class source
  Plain text file 2014_10_12_100000_...rd_resets_table.php Class Class source
  Plain text file 2019_08_19_000000_...iled_jobs_table.php Class Class source
  Plain text file 2019_12_14_000001_...ss_tokens_table.php Class Class source
  Plain text file 2022_07_14_105322_create_posts_table.php Class Class source

  Files folder image Files  /  database  /  seeders  
File Role Description
  Plain text file DatabaseSeeder.php Class Class source

  Files folder image Files  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files  /  lang  /  en  
File Role Description
  Accessible without login Plain text file auth.php Aux. Auxiliary script
  Accessible without login Plain text file pagination.php Aux. Auxiliary script
  Accessible without login Plain text file passwords.php Aux. Auxiliary script
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files  /  public  
File Role Description
  Plain text file index.php Class Class source
  Accessible without login Plain text file robots.txt Doc. Documentation

  Files folder image Files  /  resources  
File Role Description
Files folder imagejs (2 files)
Files folder imageviews (1 file, 1 directory)

  Files folder image Files  /  resources  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data

  Files folder image Files  /  resources  /  views  
File Role Description
Files folder imagepost (5 files)
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  views  /  post  
File Role Description
  Accessible without login Plain text file create.blade.php Aux. Auxiliary script
  Accessible without login Plain text file edit.blade.php Aux. Auxiliary script
  Accessible without login Plain text file index.blade.php Aux. Auxiliary script
  Accessible without login Plain text file layout.blade.php Aux. Auxiliary script
  Accessible without login Plain text file show.blade.php Aux. Auxiliary script

  Files folder image Files  /  routes  
File Role Description
  Accessible without login Plain text file api.php Example Example script
  Accessible without login Plain text file channels.php Example Example script
  Accessible without login Plain text file console.php Example Example script
  Plain text file web.php Class Class source

  Files folder image Files  /  storage  
File Role Description
Files folder imageframework (2 directories)
Files folder imagelogs (1 file)

  Files folder image Files  /  storage  /  framework  
File Role Description
Files folder imagesessions (1 file)
Files folder imageviews (12 files)

  Files folder image Files  /  storage  /  framework  /  sessions  
File Role Description
  Accessible without login Plain text file FzxlkZ325Zp4Gky6Ot8VUSRyECaEG6CW4kknHch1 Data Auxiliary data

  Files folder image Files  /  storage  /  framework  /  views  
File Role Description
  Accessible without login Plain text file 06342ea8c5c0e41c75...dc5f5096326ac54.php Example Example script
  Accessible without login Plain text file 0d6f3af345bc463a66...cd2622ec5b84a6c.php Example Example script
  Accessible without login Plain text file 132ba56be052ee8be8...5d7dffd4e57d901.php Example Example script
  Accessible without login Plain text file 4738f6d36a2ddf613d...77a1d8cbd1ef03c.php Example Example script
  Accessible without login Plain text file 4f8291524c3c8ed9ce...b59b99c203162eb.php Example Example script
  Accessible without login Plain text file 5c9037c21516d4b25e...f869bb80b5b22eb.php Example Example script
  Accessible without login Plain text file 5fd1c5871f46204e42...c3b66ebce684796.php Example Example script
  Accessible without login Plain text file 7c22f7ed5a5efd5271...e63fd910aa0b50b.php Example Example script
  Accessible without login Plain text file 7d20ce5cdfb15a64b0...99884867c074939.php Example Example script
  Accessible without login Plain text file 9e3fb171998f5c647a...01c7b97a95181df.php Example Example script
  Accessible without login Plain text file a91a93d7d1496c4a04...7995e94b7c93f81.php Example Example script
  Accessible without login Plain text file b75d779fdc2543f2c4...4b16c8ae5fa1b15.php Example Example script

  Files folder image Files  /  storage  /  logs  
File Role Description
  Accessible without login Plain text file laravel.log Data Auxiliary data

  Files folder image Files  /  tests  
File Role Description
Files folder imageFeature (1 file)
Files folder imageUnit (1 file)
  Plain text file CreatesApplication.php Class Class source
  Plain text file TestCase.php Class Class source

  Files folder image Files  /  tests  /  Feature  
File Role Description
  Plain text file ExampleTest.php Class Class source

  Files folder image Files  /  tests  /  Unit  
File Role Description
  Plain text file ExampleTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:96
This week:0
All time:9,697
This week:135Up
For more information send a message to info at phpclasses dot org.