5

I know of @RachidLaasri/LaravelInstaller but it is rather a kind of different thing I want.

I want to do something like, go to a URL like localhost::8000/installer. Then, it will display a page for super admin registration, i.e., email, password, and username. Note: I want to eliminate the ability of making my superadmin app user going to the UsersTableSeeder to configure anything.

Then, when I click on install, it migrate my seeded classes. I currently watched the command line app but still can't really figure out how to go about this.

Any advice / tip will be appreciated.

Iftikhar uddin
  • 3,117
  • 3
  • 29
  • 48
Abel Agoi
  • 131
  • 2
  • 12

2 Answers2

2

Laravel Installer

add 2 router in your project.

http : 
     routes.php
     routes2.php
---
view
    application/
    installation/

in first route you should take db name and more information you need from user. Save db name to .evn file.

After then you might create database using php codes, How to make db Pdo and run \Artisan::call('migrate') in your Controller.

Rename route to installation-route using php rename method file. And rename route2 to route.

Community
  • 1
  • 1
Morteza Negahi
  • 3,305
  • 8
  • 24
  • 42
-1

Have you tried this PHP Application Installer

This library can be used for PHP appplication configuration(database, admin credentials etc) using user interface.

Manish Dhruw
  • 753
  • 9
  • 18
  • 1
    A link to a solution is welcome, but please ensure your answer is useful without it: [add context around the link](//meta.stackexchange.com/a/8259) so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. [Answers that are little more than a link may be deleted.](//stackoverflow.com/help/deleted-answers) – 4b0 Mar 26 '18 at 09:00
  • Thanks for Advice – Manish Dhruw Mar 26 '18 at 09:09