0

Background

I am new to the Laravel Package.

In my Laravel application I usually run the following command in order to install Bican Rokes, change the config files, etc...

php artisan make:auth 
php artisan migrate

Objective

However, this process is tedious, so I was wondering if it is possible to create a package capable of automatizing the process.

What I tried

To achieve this I read the Laravel documentation, which teaches how to create packages, but I was unable to understand if this is possible and if it yes, how it should be done.

Questions

  1. Can a package be used to automate this behaviour?
  2. If yes, can you provide it?
  3. If not, can you explain to me what a package really is? (links to tutorials are welcome)
  4. If I cannot use a package, is there any other way of doing this?
Chris Forrence
  • 10,042
  • 11
  • 48
  • 64
Vijayanand Premnath
  • 3,415
  • 4
  • 25
  • 42

2 Answers2

1

I am not pushing the sale of anything, nor do I know this guy. But this tutorial is a pretty good starting point for laravel. Laravel Tutorial Series

0

if a separate package should be created or not will depend on volume of work you want to accomplish. a starting point can be a custom console command, and from with-in that command, you can call multiple other commands.. And from their you can extend it to do other things like editing files etc. If you don't know how to write a console command in Laravel, here is the link to docs: https://laravel.com/docs/5.2/artisan#writing-commands

Rahul M
  • 1,498
  • 12
  • 19