PHP Classes

Vue.js PHP CRUD Example Using Laravel Vite: Example application to manage users and blog posts

Recommend this page to a friend!
  Info   View files Example   View files View files (130)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-21 (2 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 25 This week: 25All time: 11,070 This week: 5Up
Version License PHP version Categories
vuejs-crud-vite 1.0.0MIT/X Consortium ...5Web services, Design Patterns, Blogs, P..., A...
Description 

Author

This package implements an example application to manage users and blog posts.

It implements controller classes to manage the records of users and blog posts.

The presentation uses Laravel Vite to provide the assets to render the application pages using Vue.js and Inertia.js to build a single-page application.

The package also implements an API using the Laravel Sanctum application.

Picture of Rodrigo Faustino
  Performance   Level  
Name: Rodrigo Faustino <contact>
Classes: 12 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

Example

<?php

use Illuminate\Contracts\Http\Kernel;
use
Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.
|
*/

if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
    require
$maintenance;
}

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/

require __DIR__.'/../vendor/autoload.php';

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/

$app = require_once __DIR__.'/../bootstrap/app.php';

$kernel = $app->make(Kernel::class);

$response = $kernel->handle(
   
$request = Request::capture()
)->
send();

$kernel->terminate($request, $response);


  Files folder image Files  
File Role Description
Files folder imageapp (5 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (15 files)
Files folder imagedatabase (3 directories)
Files folder imagelang (1 directory)
Files folder imagepublic (3 files)
Files folder imageresources (3 directories)
Files folder imageroutes (5 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
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 jsconfig.json 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 postcss.config.js Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file tailwind.config.js Data Auxiliary data
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, 3 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 (3 files, 1 directory)
Files folder imageMiddleware (10 files)
Files folder imageRequests (1 file, 1 directory)
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageAuth (9 files)
  Plain text file Controller.php Class Class source
  Plain text file PostController.php Class Class source
  Plain text file ProfileController.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
  Plain text file AuthenticatedSessionController.php Class Class source
  Plain text file ConfirmablePasswordController.php Class Class source
  Plain text file EmailVerificationN...ationController.php Class Class source
  Plain text file EmailVerificationPromptController.php Class Class source
  Plain text file NewPasswordController.php Class Class source
  Plain text file PasswordController.php Class Class source
  Plain text file PasswordResetLinkController.php Class Class source
  Plain text file RegisteredUserController.php Class Class source
  Plain text file VerifyEmailController.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 HandleInertiaRequests.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 ValidateSignature.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files  /  app  /  Http  /  Requests  
File Role Description
Files folder imageAuth (1 file)
  Plain text file ProfileUpdateRequest.php Class Class source

  Files folder image Files  /  app  /  Http  /  Requests  /  Auth  
File Role Description
  Plain text file LoginRequest.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
  Plain text file app.php Class Class source

  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_12_28_004023_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
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file index.php Example Application start script
  Accessible without login Plain text file robots.txt Data Robots.txt definitions

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

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

  Files folder image Files  /  resources  /  js  
File Role Description
Files folder imageComponents (14 files)
Files folder imageLayouts (3 files)
Files folder imagePages (2 files, 3 directories)
  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  /  js  /  Components  
File Role Description
  Accessible without login Plain text file ApplicationLogo.vue Data Auxiliary data
  Accessible without login Plain text file Checkbox.vue Data Auxiliary data
  Accessible without login Plain text file DangerButton.vue Data Auxiliary data
  Accessible without login Plain text file Dropdown.vue Data Auxiliary data
  Accessible without login Plain text file DropdownLink.vue Data Auxiliary data
  Accessible without login Plain text file InputError.vue Data Auxiliary data
  Accessible without login Plain text file InputLabel.vue Data Auxiliary data
  Accessible without login Plain text file Modal.vue Data Auxiliary data
  Accessible without login Plain text file NavLink.vue Data Auxiliary data
  Accessible without login Plain text file PrimaryButton.vue Data Auxiliary data
  Accessible without login Plain text file ResponsiveNavLink.vue Data Auxiliary data
  Accessible without login Plain text file SecondaryButton.vue Data Auxiliary data
  Accessible without login Plain text file Textarea.vue Data Auxiliary data
  Accessible without login Plain text file TextInput.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  Layouts  
File Role Description
  Accessible without login Plain text file Authenticated.vue Data Auxiliary data
  Accessible without login Plain text file AuthenticatedLayout.vue Data Auxiliary data
  Accessible without login Plain text file GuestLayout.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  Pages  
File Role Description
Files folder imageAuth (6 files)
Files folder imagePosts (3 files)
Files folder imageProfile (1 file, 1 directory)
  Accessible without login Plain text file Dashboard.vue Data Auxiliary data
  Accessible without login Plain text file Welcome.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  Pages  /  Auth  
File Role Description
  Accessible without login Plain text file ConfirmPassword.vue Data Auxiliary data
  Accessible without login Plain text file ForgotPassword.vue Data Auxiliary data
  Accessible without login Plain text file Login.vue Data Auxiliary data
  Accessible without login Plain text file Register.vue Data Auxiliary data
  Accessible without login Plain text file ResetPassword.vue Data Auxiliary data
  Accessible without login Plain text file VerifyEmail.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  Pages  /  Posts  
File Role Description
  Accessible without login Plain text file Create.vue Data Auxiliary data
  Accessible without login Plain text file Edit.vue Data Auxiliary data
  Accessible without login Plain text file Index.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  Pages  /  Profile  
File Role Description
Files folder imagePartials (3 files)
  Accessible without login Plain text file Edit.vue Data Auxiliary data

  Files folder image Files  /  resources  /  js  /  Pages  /  Profile  /  Partials  
File Role Description
  Accessible without login Plain text file DeleteUserForm.vue Data Auxiliary data
  Accessible without login Plain text file UpdatePasswordForm.vue Data Auxiliary data
  Accessible without login Plain text file UpdateProfileInformationForm.vue Data Auxiliary data

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

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

  Files folder image Files  /  tests  
File Role Description
Files folder imageFeature (2 files, 1 directory)
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
Files folder imageAuth (6 files)
  Plain text file ExampleTest.php Class Class source
  Plain text file ProfileTest.php Class Class source

  Files folder image Files  /  tests  /  Feature  /  Auth  
File Role Description
  Plain text file AuthenticationTest.php Class Class source
  Plain text file EmailVerificationTest.php Class Class source
  Plain text file PasswordConfirmationTest.php Class Class source
  Plain text file PasswordResetTest.php Class Class source
  Plain text file PasswordUpdateTest.php Class Class source
  Plain text file RegistrationTest.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:25
This week:25
All time:11,070
This week:5Up