first commit
This commit is contained in:
.editorconfig.env.example.gitattributes.gitignoreREADME.mdController.phpKernel.phpartisan
app
Console
Exceptions
Http
Controllers
Admin
Charts
DemoCatalogsCrudController.phpNewsCatalogCrudController.phpNewsCrudController.phpUserCrudController.phpMiddleware
Authenticate.phpCheckIfAdmin.phpEncryptCookies.phpPreventRequestsDuringMaintenance.phpRedirectIfAuthenticated.phpTrimStrings.phpTrustHosts.phpTrustProxies.phpValidateSignature.phpVerifyCsrfToken.php
Requests
Models
Providers
bootstrap
composer.jsoncomposer.lockconfig
app.phpauth.php
backpack
broadcasting.phpcache.phpcors.phpdatabase.phpelfinder.phpfilesystems.phpgravatar.phphashing.phplogging.phpmail.phppermission.phpqueue.phpsanctum.phpservices.phpsession.phpview.phpdatabase
.gitignore
factories
migrations
2014_10_12_000000_create_users_table.php2014_10_12_100000_create_password_reset_tokens_table.php2019_08_19_000000_create_failed_jobs_table.php2019_12_14_000001_create_personal_access_tokens_table.php2020_03_31_114745_remove_backpackuser_model.php2023_11_12_073759_create_permission_tables.php2023_11_13_032245_create_demo_catalogs_table.php2024_12_20_115158_create_news_catalogs_table.php2024_12_20_115219_create_news_table.php
seeders
lang
package-lock.jsonpackage.jsonpackages/ericli1018
phpunit.xmlpublic
resources
routes
run_artisanrun_composerrun_npmrun_npxrun_phprun_yarnssl_cert.pemssl_key.pemstorage
app
framework
logs
tests
vite.config.js
19
routes/api.php
Normal file
19
routes/api.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| API Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register API routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider and all of them will
|
||||
| be assigned to the "api" middleware group. Make something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
24
routes/backpack/custom.php
Normal file
24
routes/backpack/custom.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// --------------------------
|
||||
// Custom Backpack Routes
|
||||
// --------------------------
|
||||
// This route file is loaded automatically by Backpack\Base.
|
||||
// Routes you generate using Backpack\Generators will be placed here.
|
||||
|
||||
Route::group([
|
||||
'prefix' => config('backpack.base.route_prefix', 'admin'),
|
||||
'middleware' => array_merge(
|
||||
(array) config('backpack.base.web_middleware', 'web'),
|
||||
(array) config('backpack.base.middleware_key', 'admin')
|
||||
),
|
||||
'namespace' => 'App\Http\Controllers\Admin',
|
||||
], function () { // custom admin routes
|
||||
Route::crud('user', 'UserCrudController');
|
||||
Route::crud('demo-catalogs', 'DemoCatalogsCrudController');
|
||||
Route::get('charts/weekly-users', 'Charts\WeeklyUsersChartController@response')->name('charts.weekly-users.index');
|
||||
Route::crud('news-catalog', 'NewsCatalogCrudController');
|
||||
Route::crud('news', 'NewsCrudController');
|
||||
}); // this should be the absolute last line of this file
|
18
routes/channels.php
Normal file
18
routes/channels.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Broadcast Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may register all of the event broadcasting channels that your
|
||||
| application supports. The given channel authorization callbacks are
|
||||
| used to check if an authenticated user can listen to the channel.
|
||||
|
|
||||
*/
|
||||
|
||||
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
19
routes/console.php
Normal file
19
routes/console.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Console Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is where you may define all of your Closure based console
|
||||
| commands. Each Closure is bound to a command instance allowing a
|
||||
| simple approach to interacting with each command's IO methods.
|
||||
|
|
||||
*/
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
18
routes/web.php
Normal file
18
routes/web.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?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 and all of them will
|
||||
| be assigned to the "web" middleware group. Make something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
Reference in New Issue
Block a user