Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Adding new voyager version
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Oct 27, 2016
0 parents commit b9977eb
Show file tree
Hide file tree
Showing 731 changed files with 50,657 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.php linguist-language=PHP
*.js linguist-language=PHP
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
79 changes: 79 additions & 0 deletions README.md
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)

![Voyager Logo](https://s3.amazonaws.com/thecontrolgroup/voyager.png)

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
```
28 changes: 28 additions & 0 deletions assets/css/bootstrap-toggle.min.css
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}
14 changes: 14 additions & 0 deletions assets/css/database.css
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;
}
Loading

0 comments on commit b9977eb

Please sign in to comment.