Laravel? ???? ??? ?? ???? ???? ??
Nov 02, 2023 pm 12:00 PMLaravel? ???? ??? ?? ???? ???? ??
??:
??? ?? ???? ?? ? ?? ???? ??? ??? ?? ??? ?????. ??? ??? ?? ??? ?? ? ?? ?? ?? ? ??? ??? ??? ?? ???? ?????. ? ???? Laravel ?????? ???? ???? ??? ??? ??? ?? ???? ???? ??? ???? ???? ?? ??? ?????.
- ??:
??? ???? ?? PHP(?? >= 7.2) ? ??? ? ?? ?? ??? ???? ??? ???? ???. ?? ??? ??? ???? MySQL ??????? ?????. - Laravel ???? ??:
??, ??? ??? ???? Laravel ?????? ?????:
composer global require "laravel/installer"
?? ??, ?? ??? ???? ? Laravel ????? ?????:
laravel new Medical-platform
???? ???? ??:
cd Medical-platform
- ?????? ??:
.env ???? ?????? ?? ??:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_ DATABASE=??_???
DB_USERNAME= root
DB_PASSWORD=
? ?????? ??:
mysql -u root -p
CREATE DATABASE Medical_platform;
- ?? ? ?????? ?????? ??:
?? ?? ??? ???? ?? ?????? ?????? ??? ?????. ???? ?? ?? ??? ?????:
php artisan make:model Category -m
php artisan make:model Doctor -m
php artisan make:model Patient -m
php artisan make:model Appointment -m
php artisan make: model Prescription -m
? ??? ? ????? ?? ?? ??? ???? ??????/?????? ????? ?? ?????? ?????? ??? ?????.
??? ?????? ???? ? ???? ??? ??? ??? ? ????. ?? ?? Doctor ??? ?????? ??? ??? ????.
public function up() { Schema::create('doctors', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('specialty'); $table->timestamps(); }); }
?????? ??? ???? ?????? ???? ?????.
php artisan migration
- ?? ? ???? ??:
??? ?? ??? ????? ???? ???. ?? ??? ??? ?????. Routes/web.php ??? ?? ?? ??? ?????:
Route::get('/', 'HomeController@index'); Route::get('/doctors', 'DoctorController@index'); Route::get('/doctors/{id}', 'DoctorController@show'); Route::get('/patients', 'PatientController@index'); Route::get('/patients/{id}', 'PatientController@show'); Route::get('/appointments', 'AppointmentController@index');
?? ?? ?? ???? ??? ???? ???. ?? ??? ?????:
php artisan make:controller HomeController
php artisan make:controller DoctorController
php artisan make:controller PatientController
php artisan make:controller AppointmentController
??? ???? ???? ??? ??? ?? ?? ??? ??? ? ????. ?? ?? ??. ?? ?? HomeController? ??? ???? ??? ????.
public function index() { return view('home'); }
- ? ??:
resources/views ????? home.blade.php, doctor.blade.php, Patients.blade? ?? ?? ? ??? ?????. .php ?
? ???? ???? ??? ??? ???? ?? ???? ???? ? ????. ?? ??, doctor.blade.php ???? @foreach ???? ???? ?? ??? ??? ? ????:
@foreach ($doctors as $doctor) <div>{{ $doctor->name }}</div> @endforeach
- ??? ???:
???? ???? ?? ?? ???????? ?? ??? ???? ???? ? ????. Database/seeds ????? DoctorsTableSeeder.php ??? ???? ?? ??? ?????:
public function run() { DB::table('doctors')->insert([ 'name' => 'John Doe', 'specialty' => 'Cardiology', 'created_at' => now(), 'updated_at' => now(), ]); }
?? ??, Database/seeds/DatabaseSeeder.php ???? Seeder ???? ?????:
public function run() { $this->call(DoctorsTableSeeder::class); }
?? ??? ???? ??? ???? ?????. :
php artisan db:seed
- ?????? ??:
Laravel? ?? ?? ??? ????? ????? ?? ??? ?????:
php artisan Serve
?? ??, ????? ?? http:/? ?????. /localhost:8000 , ??? ?? ???? ????? ? ? ????.
??:
? ???? Laravel ?????? ???? ???? ??? ??? ??? ?? ???? ???? ??? ?????. ?? ??, ?????? ??, ?? ? ???? ??, ? ??? ?? ??? ?? ???? ??????. ? ??? ?? ??? ? ???? Laravel ?????? ??? ? ??? ???? ?? ? ????.
? ??? Laravel? ???? ??? ?? ???? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

PHP?? ?? ??? ???? ? ?? ?? ??? ????. 1. php.ini? ?? ??? ??; 2. ? ?? (? : Apache? Setenv ?? nginx? FastCGI_Param)? ??????. 3. PHP ?????? putenv () ??? ??????. ? ??? Php.ini? ????? ??? ???? ??? ???? ? ?? ??? ?? ???? ????? ???? Putenv ()? ?? ??? ?????. ?? ???? ?? ?? (? : php.ini ?? ? ?? ??)? ???? ????. ?? ?? ??? ??? ?? ??? ????? ???? ?? ????.

Laravel? ?? ??? ?? ?? ??? ?? ?? ??? ???? ??? ??????. ?? ???? ?? ??? ????? ? ???? I/O ?? ? ?? ?? ??? ???? ???? ??? ?? ? ????. 1. ?? ????? ?? ? ? ???????? ??? ????? ?? ???? ??????. 2. ??? ? ??? ?? ? ? PhPartisAnconfig? ?? ???????. 3. ?? ??? ??? ??? ???? ?? ?? ?? ???? ???? ????. 4. ?? ?? ??? ???? ?? ??? ??? .env ??? ???? ?? ???????.

PHP ????? ?? ??? ??? ? ??? ??? CI (Continuous Integration) ????? ???? ? ????. 1. DockerFile? ???? ?? ???, ?? ??, ??? ?? ? ?? ??? ???? PHP ??? ?????. 2. Gitlabci? ?? CI/CD ??? ???? .gitlab-ci.yml ??? ?? ??, ??? ? ?? ??? ???? ?? ??, ??? ? ??? ?????. 3. PHPUNIT? ?? ??? ??? ??? ???? ?? ?? ? ???? ???? ????????. 4. Kubernetes? ?? ?? ?? ??? ???? ?? .yaml ??? ?? ?? ??? ?????. 5. Dockerfile ??? ? ??? ??? ??????

??? ?? ??? PHP ???? ?? ?? ??? ???? ?? ???????. RBAC (Role-Based Access Control) ??? ?? ???, ?? ? ??? ???? ??? ?? ?? ? ??? ?????. ?? ???? ??? ?????. 1. ???, ?? ? ??? ? ???? user_roles ? role_permissions? 3 ?? ?? ???; 2. $ user-> can ( 'edit_post')? ?? ???? ?? ?? ??? ?????. 3. ??? ???? ??? ??????. 4. ?? ??? ???? ?? ?? ?? ? ??? ? ???? ???? ?? ??? ? ?? ??? ?????. 5. ??? ??? ?? ?? ???? ?? ???? "??"? ??????.

Laravel? eloquentscopes? ?? ??? ??? ??? ?????? ?? ?? ??? ????? ?????. 1. ?? ??? ???? ???? ???? ???? Post :: published (); 2. ??? ??? ?? ??? ???? ???? ?? ??? ?? ?? ?? ??? ???? ???? ??? ?????? ??? ???? ???????. 3. ????? ?? ?? ?? ??? ??? ?? ?? ??? ?? ? ? ??? ?? ? ? ?? ?? ??? ?????. 4. ?? ??? ? ??? ?? ???? ? ??? ? ?? ??, ?? ??, ?? ???? ? ?? ?????????.

CreateAhelpers.phpfileInapp/helperswithCustOmFunctionsikeFormatPrice, isactiveroute, andisAdmin.2.addTheFileTothe "??"sectionOfcomposer.jsonUnderAutoLoad.3.runcomposerDump-AUTOLOADTOMAKETHINGTICTIONSGLOBELYAVAILABLE.4.USETHEHELPERFUNCUNTION

?? ?? ?? : ?? ????? PHP? ?? Error_Log ()? ??? ? ????. ????? ???? ??? ?? ??? ?????? ???? ?? ??? ? ?? ??? ???? ??? ?? ???, ??, ?? ? ?? ? ?? ?? ??? ???? ??? ??????. 2. ??? ?? ?? : ??? ??? ??? ??? ? ??? ?? ??? ??? ?? ??? ??? ??????? ??????. MySQL/PostgreSQL? ???? ??? ? ???? ??????. Elasticsearch Kibana? ? ???/? ???? ?????. ???, ??? ?? ? ??? ? ?? ??? ?? ??????. 3. ?? ? ?? ????? : ??, ???, ?? ? ??? ??? ??????. Kibana? ?? ????? PHP ??? ?? ?? ?????? ???? ???? ?????? ???? ??? ? ?? ??? ??? ? ????.

??, ??, ?? ?? ? ?? ??? ???? ?? ??? ?? ? ?? ???? ?????. 2. ?? ???? ???? ?? ??? ??? SONGSTOMONY ? HASMANY ?? ??; 3. ?? ? ? ?? ? ?? ??? ????? (?? ???? ?? ??? ? ??). 4. ?? ? ?? ??? ???? ?? ??? ???? ?? ? ?? ??? ???? ?? ??? ?????. 5. ?? ???? ??? ?? (?? ??)? ???? ?? ????? ??????. 6. ?? ??? ?? ??? ???? Laravel Signature URL? ???? ??? ??????. 7. ? ?? ?? ? ? ?? ??? ?? ?? ??? ?? ??? ?????. ?????? ??, ?? ?? ??? ??????????.
