changed directory

This commit is contained in:
whotopia
2022-01-08 15:08:39 +01:00
parent b724da5482
commit 32720e1263
14388 changed files with 686226 additions and 0 deletions

View 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 within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});

View 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.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

View 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());
})->describe('Display an inspiring quote');

View File

@@ -0,0 +1,25 @@
<?php
use Illuminate\Support\Facades\Route;
// Route::get('/', function () {
// return view('welcome');
// });
Auth::routes(['verify' => true]);
route::get('irsx', 'IrsxController@index')->name('irsx');
route::get('', 'sample_fileController@index')->name('sample_file');
route::get('home', 'sample_fileController@index')->name('home');
route::get('user/register-home', 'adminController@index')->name('register-home');
route::get('user/register-staff', 'adminController@create')->name('register.create');
route::post('user/register-save', 'adminController@save')->name('register.save');
route::get('user/register-edit/{id}', 'adminController@edit')->name('register.edit');
route::put('user/register-update/{id}', 'adminController@update')->name('register-update');
route::delete('user/register-delete/{id}', 'adminController@delete')->name('register-delete');
Route::get('/change-password', 'ChangePasswordController@index')->name('change_pass');
Route::post('/update-password', 'ChangePasswordController@upt_pass')->name('upt_pass');
Route::get('/text', 'textController@index')->name('text');
Auth::routes();
// Route::get('/home', 'HomeController@index')->name('home');