This repository was archived by the owner on Feb 7, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b9977eb
Showing
731 changed files
with
50,657 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.php linguist-language=PHP | ||
*.js linguist-language=PHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# **V**oyager - The Missing Laravel Admin | ||
|
||
Laravel Admin & BREAD System. (Browse, Read, Edit, Add, & Delete) | ||
|
||
 | ||
|
||
After creating your new Laravel application you can include the Voyager package with the folowing command: | ||
|
||
``` | ||
composer require tcg/voyager | ||
``` | ||
|
||
Next make sure to create a new database and add your database credentials to your .env file: | ||
|
||
``` | ||
DB_HOST=localhost | ||
DB_DATABASE=homestead | ||
DB_USERNAME=homestead | ||
DB_PASSWORD=secret | ||
``` | ||
|
||
Add the Voyager service provider as well as the Image Intervention service provider to the config/app.php file in the `'providers' => [` array: | ||
|
||
``` | ||
TCG\Voyager\VoyagerServiceProvider::class, | ||
Intervention\Image\ImageServiceProvider::class, | ||
``` | ||
|
||
Then in the `'aliases' => [` array, add the following aliases: | ||
|
||
``` | ||
'Menu' => TCG\Voyager\Models\Menu::class, | ||
'Voyager' => TCG\Voyager\Voyager::class, | ||
``` | ||
|
||
Optionally if you wish to have the front-end authentication scaffolding provided by laravel you can run: | ||
|
||
``` | ||
php artisan make:auth | ||
``` | ||
|
||
Then, we'll need to publish our voyager files to be loaded into your app | ||
|
||
``` | ||
php artisan vendor:publish | ||
``` | ||
|
||
Finally, lets run our migrations | ||
|
||
``` | ||
php artisan migrate | ||
``` | ||
|
||
And before we run the database seed, we need to run the following command: | ||
|
||
``` | ||
composer dump-autoload | ||
``` | ||
|
||
Now, let's run our database seeds: | ||
|
||
``` | ||
php artisan db:seed --class=VoyagerDatabaseSeeder | ||
``` | ||
|
||
Next, we need to add our symbolic link so our images will be located inside of our storage directory: | ||
|
||
``` | ||
php artisan storage:link | ||
``` | ||
|
||
And we're all good to go! | ||
|
||
Start up a local development server with `php artisan serve` And, visit http://localhost:8000/admin and you can login with the following login credentials: | ||
|
||
``` | ||
**email:** [email protected] | ||
**password:** password | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*! ======================================================================== | ||
* Bootstrap Toggle: bootstrap-toggle.css v2.2.0 | ||
* http://www.bootstraptoggle.com | ||
* ======================================================================== | ||
* Copyright 2014 Min Hur, The New York Times Company | ||
* Licensed under MIT | ||
* ======================================================================== */ | ||
.checkbox label .toggle,.checkbox-inline .toggle{margin-left:-20px;margin-right:5px} | ||
.toggle{position:relative;overflow:hidden} | ||
.toggle input[type=checkbox]{display:none} | ||
.toggle-group{position:absolute;width:200%;top:0;bottom:0;left:0;transition:left .35s;-webkit-transition:left .35s;-moz-user-select:none;-webkit-user-select:none} | ||
.toggle.off .toggle-group{left:-100%} | ||
.toggle-on{position:absolute;top:0;bottom:0;left:0;right:50%;margin:0;border:0;border-radius:0} | ||
.toggle-off{position:absolute;top:0;bottom:0;left:50%;right:0;margin:0;border:0;border-radius:0} | ||
.toggle-handle{position:relative;margin:0 auto;padding-top:0;padding-bottom:0;height:100%;width:0;border-width:0 1px} | ||
.toggle.btn{min-width:59px;min-height:34px} | ||
.toggle-on.btn{padding-right:24px} | ||
.toggle-off.btn{padding-left:24px} | ||
.toggle.btn-lg{min-width:79px;min-height:45px} | ||
.toggle-on.btn-lg{padding-right:31px} | ||
.toggle-off.btn-lg{padding-left:31px} | ||
.toggle-handle.btn-lg{width:40px} | ||
.toggle.btn-sm{min-width:50px;min-height:30px} | ||
.toggle-on.btn-sm{padding-right:20px} | ||
.toggle-off.btn-sm{padding-left:20px} | ||
.toggle.btn-xs{min-width:35px;min-height:22px} | ||
.toggle-on.btn-xs{padding-right:12px} | ||
.toggle-off.btn-xs{padding-left:12px} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
table p{ | ||
margin:0px; | ||
padding:5px; | ||
} | ||
table p.name{ | ||
font-weight:bold; | ||
} | ||
.table>tfoot>tr>th, .table>thead>tr>th{ | ||
font-weight:bold; | ||
border-bottom:2px solid #ccc; | ||
} | ||
form button{ | ||
border:0px; | ||
} |
Oops, something went wrong.