File manager - Edit - /home/bookdonate/htdocs/bookdonate.in/public/routes.zip
Back
PK ��\ 0Ih h web.phpnu ��� <?php use App\Http\Controllers\AdminController; use App\Http\Controllers\BooksController; use App\Http\Controllers\ContactusController; use App\Http\Controllers\DashboardController; use App\Http\Controllers\MessagesController; use App\Http\Controllers\PagesController; use App\Http\Controllers\QueryController; use Illuminate\Support\Facades\Route; Auth::routes(); Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); /* |-------------------------------------------------------------------------- | 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('/', [PagesController::class, 'index'])->name('home'); Route::get('/about', [PagesController::class, 'about'])->name('about'); Route::resource('books', BooksController::class); Route::resource('admin', AdminController::class); Route::get('books/{id}/delete', [BooksController::class, 'destroy'])->name('home.delete'); Route::get('request/{id}/edit', [BooksController::class, 'edit'])->name('home.edit'); // Assuming this is what you intended Route::post('/books/{id}', [BooksController::class, 'update'])->name('books.update'); // Route::post('search-books', [BooksController::class, 'index'])->name('books.search'); Route::get('/orderByTitle', [BooksController::class, 'orderByTitle']); Route::get('/orderByAuthor', [BooksController::class, 'orderByAuthor']); Route::get('/PriceGreaterThan50', [BooksController::class, 'PriceGreaterThan50']); Route::get('/PriceLessThan50', [BooksController::class, 'PriceLessThan50']); Route::get('/HighestToLowest', [BooksController::class, 'HighestToLowest']); Route::get('/LowestToHighest', [BooksController::class, 'LowestToHighest']); Route::get('/NewestToOldest', [BooksController::class, 'NewestToOldest']); Route::get('/OldestToNewest', [BooksController::class, 'OldestToNewest']); Auth::routes(); Route::get('/dashboard', [DashboardController::class, 'index']); Route::get('/orders', [DashboardController::class, 'orders']); Route::get('/orders/vieworder/{id}', [DashboardController::class, 'view_order_func'])->name('view.order'); Route::get('/profile', [DashboardController::class, 'profile']); Route::post('/profileupdate', [DashboardController::class, 'profileupdate'])->name('profileupdate'); Route::post('/orders/ordermessege/{id}', [DashboardController::class, 'ordermessege_func'])->name('dashboard.ordermessege'); Route::post('/orders/updateordermessege/{id}', [DashboardController::class, 'updateordermessege_func'])->name('dashboard.updateordermessege'); Route::get('/admin', [AdminController::class, 'index']); Route::get('/admin/requestbook/{id}', [AdminController::class, 'view_requestbook'])->name('view.requestbook'); Route::post('/admin/ordermessege/{id}', [AdminController::class, 'ordermessege_func'])->name('messages.ordermessege'); Route::post('/admin/updateordermessege/{id}', [AdminController::class, 'updateordermessege_func'])->name('messages.updateordermessege'); Route::get('/addToCart/{id}', [BooksController::class, 'getAddToCart']); Route::get('/reduce/{id}', [BooksController::class, 'getReduceByOne']); Route::get('/removeItem/{id}', [BooksController::class, 'getRemoveItem']); Route::get('/Requestedbook', [BooksController::class, 'getCart']); Route::get('/checkout', [BooksController::class, 'getCheckout']); Route::post('/checkout', [BooksController::class, 'postcheckout'])->name('books.postcheckout'); Route::any('/checkoutrequestbook', [BooksController::class, 'checkoutrequestbook']); Route::get('/search', [QueryController::class, 'search']); Route::get('/unread-count', [PagesController::class, 'unreadCount']); Route::resource('contact', ContactusController::class, ['except' => ['create', 'edit', 'update', 'destroy', 'show']]); Route::group(['prefix' => 'messages'], function () { Route::get('/', [MessagesController::class, 'index'])->name('messages'); Route::get('create', [MessagesController::class, 'create'])->name('messages.create'); Route::post('/', [MessagesController::class, 'store'])->name('messages.store'); Route::get('{id}', [MessagesController::class, 'show'])->name('messages.show'); Route::put('{id}', [MessagesController::class, 'update'])->name('messages.update'); }); PK ��\��P P console.phpnu ��� <?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'); PK ��\����. . channels.phpnu ��� <?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; }); PK �I�\�h�a api.phpnu ��� <?php use App\Http\Controllers\Api\AuthController; use App\Http\Controllers\Api\BookController; use App\Http\Controllers\Api\SettingsController; 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! | */ //Open Routes Route::get('/settings', [SettingsController::class, 'index'])->name('settings'); Route::post('/books', [BookController::class, 'list'])->name('books.list'); Route::get('/books/{id}', [BookController::class, 'detail'])->name('books.detail'); // Auth Routes Route::post('/login', [AuthController::class, 'login']); Route::middleware('auth:sanctum')->get('/user', function (Request $request) { return $request->user(); }); PK ��\ 0Ih h web.phpnu ��� PK ��\��P P � console.phpnu ��� PK ��\����. . * channels.phpnu ��� PK �I�\�h�a � api.phpnu ��� PK % �
| ver. 1.4 |
Github
|
.
| PHP 8.2.16 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings