Skip to content

Commit f84162d

Browse files
committed
adding more stuff
1 parent d3919ea commit f84162d

File tree

10 files changed

+121
-3
lines changed

10 files changed

+121
-3
lines changed

README.md

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Getting Started
2+
### Getting Started
33

44
First add to composer.json
55

@@ -24,4 +24,56 @@ you can setup extra stuff in your project by running the command but **this is o
2424

2525
```
2626
php artisan platform:setup
27-
```
27+
```
28+
29+
### Adding your own navigation
30+
31+
You can easily tap into the navigation of platform by using the Navigation laravel facade or App::make('platform.navigation');
32+
33+
34+
```
35+
$blog = [
36+
'title' => 'Blogs',
37+
'icon' => 'fa-pencil-square-o',
38+
'url' => route('blogs.index'),
39+
'shown' => can('update', 'Blogs'),
40+
'active' => 'blogs',
41+
];
42+
43+
Navigation::add($blogs);
44+
```
45+
46+
### Adjusting platform views
47+
48+
If you want to make a custom view you can modify any views after running
49+
50+
```
51+
$ php artisan view:publish codesleeve/platform-core
52+
```
53+
54+
### Adding your own dashboard sections
55+
**TODO**
56+
Not implemented yet but on the radar.
57+
58+
```
59+
Dashboard::add('view.name')
60+
```
61+
62+
### Breadcrumbs helper
63+
64+
**TODO**
65+
Add a tidbit about Breadcrumbs. Also add the ability to easily override the Breadcrumbs view that is made (just how the Pagination component works in Laravel);
66+
67+
68+
### Additional helpers
69+
**TODO**
70+
Add the form helpers and macros we have in platform core here...
71+
72+
73+
**TODO**
74+
75+
- I don't think we should rely on the BaseController for all the extra's. This would probably be better for a view.composer. Things like Breadcrumbs...
76+
77+
- Change the theme and colors to match the codesleeve.com website more... theme needs a little tinder love and care.
78+
79+

src/Codesleeve/Platform/Controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php namespace Codesleeve\Platform\Controllers;
22

3-
use App, Auth, Controller, Route, User, View;
3+
use Auth, Controller, Route, View;
44

55
use Codesleeve\Platform\Facades\Navigation;
66
use Codesleeve\Platform\Facades\Breadcrumbs;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
class BaseController extends \Codesleeve\Platform\Controllers\BaseController
4+
{
5+
/**
6+
* Layout we should use for the main layout
7+
*
8+
* @var string
9+
*/
10+
protected $layout = 'layouts.application';
11+
12+
/**
13+
* There is no namespace we are in
14+
*
15+
* @var string
16+
*/
17+
protected $namespace = false;
18+
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="description" content="Basic layout page to get started">
7+
<meta name="author" content="Codesleeve Platform">
8+
<link rel="shortcut icon" href="img/favicon.ico">
9+
10+
<title><?= isset($title) ? $title : 'Codesleeve Platform' ?></title>
11+
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400' rel='stylesheet' type='text/css'>
12+
13+
<?= stylesheet_link_tag() ?>
14+
<?= javascript_include_tag() ?>
15+
</head>
16+
<body>
17+
<div class="container">
18+
<?= $content ?>
19+
</div>
20+
</body>
21+
</html>

src/setup/provider/assets/javascripts/jquery/jquery-1.11.0.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup/provider/assets/javascripts/twitter/bootstrap.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup/provider/assets/stylesheets/twitter/bootstrap-theme.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup/provider/assets/stylesheets/twitter/bootstrap-theme.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup/provider/assets/stylesheets/twitter/bootstrap.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup/provider/assets/stylesheets/twitter/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)