firstcommit

This commit is contained in:
2025-08-17 16:23:14 +05:45
commit 76bf4c0a18
2648 changed files with 362795 additions and 0 deletions

19
routes/api.php Normal file
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 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();
});

18
routes/channels.php Normal file
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.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

19
routes/console.php Normal file
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());
})->purpose('Display an inspiring quote');

35
routes/frontend/web.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
/*
|--------------------------------------------------------------------------
| Frontend Web Routes
|--------------------------------------------------------------------------
*/
/**************************** Routes For HomePage **********************************/
Route::controller(HomeController::class)
->group(function () {
Route::get('/', 'home')->name('home');
Route::get('/hair', 'hairTransplant')->name('hair_transplant');
Route::get('/hair/{slug}', 'hairTransplantChild')->name('hair_transplant.child');
Route::get('/services/{slug}', 'service')->name('service');
Route::get('/doctor-provider', 'doctorProvider')->name('doctor_provider');
Route::post('/doctor-provider/appointment', 'appointment')->name('appointment');
Route::get('/blogs', 'blogs')->name('blogs');
Route::get('/blogs/{slug}', 'singleBlog')->name('single_blog');
Route::get('/about-us', 'aboutUs')->name('about_us');
Route::get('/contact-us', 'contactUs')->name('contact_us');
Route::get('/faqs', 'faqs')->name('faqs');
Route::get('/privacy-policy', 'privacyPolicy')->name('privacyPolicy');
Route::get('/terms-of-service', 'termsOfService')->name('termsOfService');
Route::post('/subscribe', 'storeSubscription')->name('subscribe');
Route::post('/contact-us', 'storeContactUs')->name('contactUsMessage');
Route::post('/consultation', 'storeConsultation')->name('consultat_with_us');
Route::get('/page/{slug}', 'extraPage')->name('extra_page');
});

21
routes/web.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Frontend Web Routes
|--------------------------------------------------------------------------
*/
/**************************** Routes For HomePage **********************************/
require_once __DIR__.'/frontend/web.php';
Route::get('test', function(){
return view('mail.send_subscription_mail');
});