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

Commit b9977eb

Browse files
committed
Adding new voyager version
0 parents  commit b9977eb

File tree

731 files changed

+50657
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

731 files changed

+50657
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.php linguist-language=PHP
2+
*.js linguist-language=PHP

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# **V**oyager - The Missing Laravel Admin
2+
3+
Laravel Admin & BREAD System. (Browse, Read, Edit, Add, & Delete)
4+
5+
![Voyager Logo](https://s3.amazonaws.com/thecontrolgroup/voyager.png)
6+
7+
After creating your new Laravel application you can include the Voyager package with the folowing command:
8+
9+
```
10+
composer require tcg/voyager
11+
```
12+
13+
Next make sure to create a new database and add your database credentials to your .env file:
14+
15+
```
16+
DB_HOST=localhost
17+
DB_DATABASE=homestead
18+
DB_USERNAME=homestead
19+
DB_PASSWORD=secret
20+
```
21+
22+
Add the Voyager service provider as well as the Image Intervention service provider to the config/app.php file in the `'providers' => [` array:
23+
24+
```
25+
TCG\Voyager\VoyagerServiceProvider::class,
26+
Intervention\Image\ImageServiceProvider::class,
27+
```
28+
29+
Then in the `'aliases' => [` array, add the following aliases:
30+
31+
```
32+
'Menu' => TCG\Voyager\Models\Menu::class,
33+
'Voyager' => TCG\Voyager\Voyager::class,
34+
```
35+
36+
Optionally if you wish to have the front-end authentication scaffolding provided by laravel you can run:
37+
38+
```
39+
php artisan make:auth
40+
```
41+
42+
Then, we'll need to publish our voyager files to be loaded into your app
43+
44+
```
45+
php artisan vendor:publish
46+
```
47+
48+
Finally, lets run our migrations
49+
50+
```
51+
php artisan migrate
52+
```
53+
54+
And before we run the database seed, we need to run the following command:
55+
56+
```
57+
composer dump-autoload
58+
```
59+
60+
Now, let's run our database seeds:
61+
62+
```
63+
php artisan db:seed --class=VoyagerDatabaseSeeder
64+
```
65+
66+
Next, we need to add our symbolic link so our images will be located inside of our storage directory:
67+
68+
```
69+
php artisan storage:link
70+
```
71+
72+
And we're all good to go!
73+
74+
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:
75+
76+
```
77+
78+
**password:** password
79+
```

assets/css/bootstrap-toggle.min.css

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*! ========================================================================
2+
* Bootstrap Toggle: bootstrap-toggle.css v2.2.0
3+
* http://www.bootstraptoggle.com
4+
* ========================================================================
5+
* Copyright 2014 Min Hur, The New York Times Company
6+
* Licensed under MIT
7+
* ======================================================================== */
8+
.checkbox label .toggle,.checkbox-inline .toggle{margin-left:-20px;margin-right:5px}
9+
.toggle{position:relative;overflow:hidden}
10+
.toggle input[type=checkbox]{display:none}
11+
.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}
12+
.toggle.off .toggle-group{left:-100%}
13+
.toggle-on{position:absolute;top:0;bottom:0;left:0;right:50%;margin:0;border:0;border-radius:0}
14+
.toggle-off{position:absolute;top:0;bottom:0;left:50%;right:0;margin:0;border:0;border-radius:0}
15+
.toggle-handle{position:relative;margin:0 auto;padding-top:0;padding-bottom:0;height:100%;width:0;border-width:0 1px}
16+
.toggle.btn{min-width:59px;min-height:34px}
17+
.toggle-on.btn{padding-right:24px}
18+
.toggle-off.btn{padding-left:24px}
19+
.toggle.btn-lg{min-width:79px;min-height:45px}
20+
.toggle-on.btn-lg{padding-right:31px}
21+
.toggle-off.btn-lg{padding-left:31px}
22+
.toggle-handle.btn-lg{width:40px}
23+
.toggle.btn-sm{min-width:50px;min-height:30px}
24+
.toggle-on.btn-sm{padding-right:20px}
25+
.toggle-off.btn-sm{padding-left:20px}
26+
.toggle.btn-xs{min-width:35px;min-height:22px}
27+
.toggle-on.btn-xs{padding-right:12px}
28+
.toggle-off.btn-xs{padding-left:12px}

assets/css/database.css

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
table p{
2+
margin:0px;
3+
padding:5px;
4+
}
5+
table p.name{
6+
font-weight:bold;
7+
}
8+
.table>tfoot>tr>th, .table>thead>tr>th{
9+
font-weight:bold;
10+
border-bottom:2px solid #ccc;
11+
}
12+
form button{
13+
border:0px;
14+
}

0 commit comments

Comments
 (0)