Laravel 7/6/5.8+ User CRUD using Resource Controller API & VueJS & jQuery

php artisan make:controller UsersController --resource
Route::resource(‘/users’, ‘UsersController’);
Route::get(‘/users’, function(){
return view(‘users’);
})->name(‘users’)->middleware(‘auth’);
php artisan route:list
@extends('layouts.app')
@section('content')
<user-component></user-component>
@endsection
Vue.component('user-component', require('./components/UserComponent.vue').default);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store