Thursday, 11 September, 2025г.
russian english deutsch french spanish portuguese czech greek georgian chinese japanese korean indonesian turkish thai uzbek

пример: покупка автомобиля в Запорожье

 

php tutorial - Using illuminate/database, eloquent model and composer outside laravel

php tutorial - Using illuminate/database, eloquent model and composer outside laravelУ вашего броузера проблема в совместимости с HTML5
In this video, I have shown how can we use illuminate/database package outside laravel mvc framework. How can we extend the eloquent model. How can we use composer for autoloading php file. All source code will be available in following link https://github.com/polodev/illuminate_database_eloquent_outside_laravel_yt_english making a website with illuminate database package outside laravel visit package on https://packagist.org/packages/illuminate/database page installing illuminate/database package with dependancy composer require illuminate/database illuminate/events adding db.php file to composer.json file to autolaod and doing composer dump-autoload command "autoload": { "files": ["db.php"] } creating table using schema builder Relation between 2 models is, subject belongs to Department and Department has many subjects. adding model folder to composer.json file to autolaod all models and doing composer dump-autoload command "autoload": { "classmap": ["Models"] } How to run this source code in your pc I hope you already have npm(node package manager) and composer install in your pc. If its not your case just download node js from https://nodejs.org/en/ and download composer from https://getcomposer.org/doc/00-intro.md#installation-windows. Once you have installed both software in your pc you just do following command in terminal. To install jquery, bootstrap, popper.js npm install To install illuminate/database illuminate/events composer install Login to your mysql account and make a database name college Now serve using any server. You can use php mini server like mine. php -S localhost:8000 Here 8000 could be any 4 digit
Мой аккаунт