Permalink
Browse files

Readme and subtitle

  • Loading branch information...
1 parent a4b3fca commit 0a7dc989ea23b21ac47e371b895651294bad8a9b Maru Amallo-amamarul committed Jan 10, 2017
Showing with 21 additions and 15 deletions.
  1. +17 −11 README.md
  2. +3 −3 src/Commands/Console/stubs/controller.model2.stub
  3. +1 −1 src/Views/show.blade.php
View
@@ -12,7 +12,7 @@ The amamarul:crud make:
8 - Routes
9 - Breadcrumbs
-## Install Boilerplate
+# Install Boilerplate
``` bash
$ git clone https://github.com/rappasoft/laravel-5-boilerplate.git
@@ -25,24 +25,30 @@ $ cd laravel-5-boilerplate
``` bash
$ composer install
```
+## Duplicate .env.example and rename to .env
-## Install Package (Laravel)
+``` bash
+$ php artisan key:generate
+```
+# Set Database in .env
+
+# Install Package (Laravel)
-# Via Composer
+## Via Composer
``` bash
-$ composer require amamarul/BoilerPlateCommands
+$ composer require amamarul/boiler-plate-commands
```
-# Add the following to the AppServiceProvider in the register function:
+## Add the following to the AppServiceProvider in the register function:
``` php
/*
* Load third party local providers
*/
$this->app->register(\Amamarul\BoilerPlateCommands\Providers\BoilerPlateCommandsServiceProvider::class);
```
-# The register function must look like this
+## The register function must look like this
``` php
public function register()
{
@@ -73,15 +79,15 @@ public function register()
}
```
-# Publish the views
+## Publish the views
``` bash
$ php artisan vendor:publish --provider='Amamarul\BoilerPlateCommands\Providers\BoilerPlateCommandsServiceProvider'
```
-## Usage
+# Usage
You need the tables migrated
-# create migration
+## create migration
``` bash
$ php artisan make:migration create_products_table
```
@@ -119,11 +125,11 @@ class CreateProductsTable extends Migration
}
}
```
-# Migrate
+## Migrate
``` bash
$ php artisan migrate
```
-## Make the Crud
+# Make the Crud
Run the following commands
**amamarul:crud {name} {tabla} {seccion} {grupo?}**
* **name:** Is the Model Name
@@ -43,7 +43,7 @@ class DummyClass extends Controller
$title = 'DummyModelClass: Crear';
session(['title_DummyModelVariable' => $title]);
- return view('Amamarul::show', ['title' => $title,'data' => $data,'box_link' => $box_link]);
+ return view('Amamarul::show', ['title' => $title,'subtitle' => '','data' => $data,'box_link' => $box_link]);
}
/**
@@ -78,7 +78,7 @@ class DummyClass extends Controller
]);
$title = 'DummyModelClass: '.$DummyModelVariable->name ? $DummyModelVariable->name : '';
session(['title_DummyModelVariable' => $title]);
- return view('Amamarul::show', ['title' => $title,'data' => $data,'box_link' => $box_link]);
+ return view('Amamarul::show', ['title' => $title,'subtitle' => '','data' => $data,'box_link' => $box_link]);
}
/**
@@ -106,7 +106,7 @@ class DummyClass extends Controller
$title = 'DummyModelClass: '.$DummyModelVariable->name ? $DummyModelVariable->name : '';
session(['title_DummyModelVariable' => $title]);
- return view('Amamarul::show', ['title' => $title,'data' => $data,'box_link' => $box_link]);
+ return view('Amamarul::show', ['title' => $title,'subtitle' => '','data' => $data,'box_link' => $box_link]);
}
/**
@@ -9,7 +9,7 @@
@section('page-header')
<h1>
{!! $title !!}
- <small>{{ $subtitle ? $subtitle : '' }}</small>
+ <small>{{ isset($subtitle) ? $subtitle : '' }}</small>
</h1>
@endsection

0 comments on commit 0a7dc98

Please sign in to comment.