Laravel PHP Developer Question:
Download Job Interview Questions and Answers PDF
Tell me how to implement you own package in Laravel?
Answer:
You can create a package in laravel using the following steps:
☛ 1. Package folder and name
☛ 2. Composer.json file for the package
☛ 3. Loading package via main composer.json and PSR-4
☛ 4. Creating a Service Provider
☛ 5. Create a Controller for your package
☛ 6. Create our Routes.php file
☛ 1. Package folder and name
☛ 2. Composer.json file for the package
☛ 3. Loading package via main composer.json and PSR-4
☛ 4. Creating a Service Provider
☛ 5. Create a Controller for your package
☛ 6. Create our Routes.php file
Download Laravel PHP Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Do you know what is the latest version of laravel? | Tell me what is database migration? And how to use it to add insert initial data to database? |