PHP Classes

Laravel Livewire CRUD: CRUD application implemented with Laravel Livewire

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 71 All time: 10,266 This week: 455Up
Version License PHP version Categories
laravel-with-livewir 1.0.0The PHP License5PHP 5, Databases, Libraries
Description 

Author

This package provides an example of CRUD application implemented with Laravel Livewire.

The application provides classes that extend the Livewire component class to implement the specific aspects of each action of a CRUD application, like the access to the model data, validation and the interface rendering.

The application user authentication and the views are implemented by the Livewire view components.

Innovation Award
PHP Programming Innovation award nominee
February 2022
Number 4
Livewire is a package built on top of the Laravel framework to simplify further a developer's work that needs to develop applications with dynamic interfaces.

Applications based on Livewire require that developers write less code than traditional Web applications or applications based just on Laravel.

This package demonstrates how to implement a simple CRUD application in practice using Laravel Livewire. This way, other developers can learn faster from this practical example.

Manuel Lemos
Picture of Busari Ridwan
  Performance   Level  
Name: Busari Ridwan <contact>
Classes: 5 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 342824 in Nigeria Nigeria
Week rank: 193 Up8 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 4x

Example

<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return
view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');


Details

<p align="center"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></p>

<p align="center"> <a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a> </p>

Simple CRUD app with Laravel and Livewire

Laravel is arguably the most popular php frameworks, Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel.

Installation

The following steps will guide you through running this application

  • Clone this repository
  • Run composer install
  • Setup DB credentials in the .env file
  • Run DB migration
  • Serve the application to any port
  • Register a new user
  • Enjoy your CRUD operation

  Files folder image Files (106)  
File Role Description
Files folder image.idea (7 files)
Files folder imageapp (1 file, 5 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (14 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files, 2 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml 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 package-lock.json Data Auxiliary data
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 server.php Aux. Auxiliary script
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

  Files folder image Files (106)  /  .idea  
File Role Description
  Accessible without login Plain text file emacs.xml Data Auxiliary data
  Accessible without login Plain text file laravel-livewire.iml Data Auxiliary data
  Accessible without login Plain text file misc.xml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file php.xml Data Auxiliary data
  Accessible without login Plain text file vcs.xml Data Auxiliary data
  Accessible without login Plain text file workspace.xml Data Auxiliary data

  Files folder image Files (106)  /  app  
File Role Description
Files folder imageConsole (1 file)
Files folder imageExceptions (1 file)
Files folder imageHttp (1 file, 3 directories)
Files folder imagemodels (1 file)
Files folder imageProviders (5 files)
  Plain text file User.php Class Class source

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

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

  Files folder image Files (106)  /  app  /  Http  
File Role Description
Files folder imageControllers (2 files, 1 directory)
Files folder imageLivewire (4 files)
Files folder imageMiddleware (7 files)
  Plain text file Kernel.php Class Class source

  Files folder image Files (106)  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageAuth (6 files)
  Plain text file Controller.php Class Class source
  Plain text file HomeController.php Class Class source

  Files folder image Files (106)  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
  Plain text file ConfirmPasswordController.php Class Class source
  Plain text file ForgotPasswordController.php Class Class source
  Plain text file LoginController.php Class Class source
  Plain text file RegisterController.php Class Class source
  Plain text file ResetPasswordController.php Class Class source
  Plain text file VerificationController.php Class Class source

  Files folder image Files (106)  /  app  /  Http  /  Livewire  
File Role Description
  Plain text file PostCreate.php Class Class source
  Plain text file PostDelete.php Class Class source
  Plain text file PostIndex.php Class Class source
  Plain text file PostSingle.php Class Class source

  Files folder image Files (106)  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file CheckForMaintenanceMode.php Class Class source
  Plain text file EncryptCookies.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files (106)  /  app  /  models  
File Role Description
  Plain text file Post.php Class Class source

  Files folder image Files (106)  /  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 (106)  /  bootstrap  
File Role Description
  Plain text file app.php Class Class source

  Files folder image Files (106)  /  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
  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 (106)  /  database  
File Role Description
Files folder imagefactories (2 files)
Files folder imagemigrations (4 files)
Files folder imageseeds (2 files)

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

  Files folder image Files (106)  /  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 2020_04_25_143425_create_posts_table.php Class Class source

  Files folder image Files (106)  /  database  /  seeds  
File Role Description
  Plain text file DatabaseSeeder.php Class Class source
  Plain text file PostTableSeeder.php Class Class source

  Files folder image Files (106)  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file index.php Class Class source
  Accessible without login Plain text file mix-manifest.json Data Auxiliary data
  Accessible without login Plain text file robots.txt Doc. Documentation

  Files folder image Files (106)  /  public  /  css  
File Role Description
  Accessible without login Plain text file app.css Data Auxiliary data

  Files folder image Files (106)  /  public  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data

  Files folder image Files (106)  /  resources  
File Role Description
Files folder imagejs (2 files)
Files folder imagelang (1 directory)
Files folder imagesass (2 files)
Files folder imageviews (2 files, 3 directories)

  Files folder image Files (106)  /  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 (106)  /  resources  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files (106)  /  resources  /  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 (106)  /  resources  /  sass  
File Role Description
  Accessible without login Plain text file app.scss Data Auxiliary data
  Accessible without login Plain text file _variables.scss Data Auxiliary data

  Files folder image Files (106)  /  resources  /  views  
File Role Description
Files folder imageauth (3 files, 1 directory)
Files folder imagelayouts (1 file)
Files folder imagelivewire (4 files)
  Accessible without login Plain text file home.blade.php Aux. Auxiliary script
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files (106)  /  resources  /  views  /  auth  
File Role Description
Files folder imagepasswords (3 files)
  Accessible without login Plain text file login.blade.php Aux. Auxiliary script
  Accessible without login Plain text file register.blade.php Aux. Auxiliary script
  Accessible without login Plain text file verify.blade.php Aux. Auxiliary script

  Files folder image Files (106)  /  resources  /  views  /  auth  /  passwords  
File Role Description
  Accessible without login Plain text file confirm.blade.php Aux. Auxiliary script
  Accessible without login Plain text file email.blade.php Aux. Auxiliary script
  Accessible without login Plain text file reset.blade.php Aux. Auxiliary script

  Files folder image Files (106)  /  resources  /  views  /  layouts  
File Role Description
  Accessible without login Plain text file app.blade.php Aux. Auxiliary script

  Files folder image Files (106)  /  resources  /  views  /  livewire  
File Role Description
  Accessible without login Plain text file post-create.blade.php Aux. Auxiliary script
  Accessible without login Plain text file post-delete.blade.php Aux. Auxiliary script
  Accessible without login Plain text file post-index.blade.php Aux. Auxiliary script
  Accessible without login Plain text file post-single.blade.php Aux. Auxiliary script

  Files folder image Files (106)  /  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
  Accessible without login Plain text file web.php Example Example script

  Files folder image Files (106)  /  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 (106)  /  tests  /  Feature  
File Role Description
  Plain text file ExampleTest.php Class Class source

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:71
This week:0
All time:10,266
This week:455Up