@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('inventory', function (Blueprint $table) { |
|
| 16 | + Schema::create('inventory', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('public_id'); |
| 19 | 19 | $table->string('name', 80); |
@@ -4,26 +4,26 @@ |
||
| 4 | 4 | |
| 5 | 5 | @section('content') |
| 6 | 6 | |
| 7 | - <div class="form-group row add"> |
|
| 8 | - <div class="col-md-12"> |
|
| 9 | - <h1>Inventory section 1</h1> |
|
| 10 | - </div> |
|
| 7 | + <div class = "form-group row add" > |
|
| 8 | + <div class = "col-md-12" > |
|
| 9 | + <h1 > Inventory section 1 < /h1 > |
|
| 10 | + < / div > |
|
| 11 | 11 | |
| 12 | - <div class="col-md-12"> |
|
| 12 | + <div class = "col-md-12" > |
|
| 13 | 13 | |
| 14 | - <button type="button" data-toggle="modal" data-target="create-item" class="btn btn-primary"></button> |
|
| 14 | + <button type = "button" data - toggle = "modal" data - target = "create-item" class = "btn btn-primary" > < / button > |
|
| 15 | 15 | |
| 16 | 16 | Create New Provider |
| 17 | 17 | |
| 18 | - </div> |
|
| 18 | + < / div > |
|
| 19 | 19 | |
| 20 | - </div> |
|
| 20 | + < / div > |
|
| 21 | 21 | |
| 22 | - <div class="row"> |
|
| 23 | - <div class=""> |
|
| 22 | + <div class = "row" > |
|
| 23 | + <div class = "" > |
|
| 24 | 24 | |
| 25 | - </div> |
|
| 25 | + < / div > |
|
| 26 | 26 | |
| 27 | - </div> |
|
| 27 | + < / div > |
|
| 28 | 28 | |
| 29 | 29 | @stop |
| 30 | 30 | \ No newline at end of file |
@@ -20,15 +20,15 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function register() |
| 22 | 22 | { |
| 23 | - include __DIR__.'/routes.php'; |
|
| 23 | + include __DIR__ . '/routes.php'; |
|
| 24 | 24 | $this->app->make('Scool\Inventory\InventoryController'); |
| 25 | 25 | if (!defined('SCOOL_INVENTORY_PATH')) { |
| 26 | - define('SCOOL_INVENTORY_PATH', realpath(__DIR__.'/../../')); |
|
| 26 | + define('SCOOL_INVENTORY_PATH', realpath(__DIR__ . '/../../')); |
|
| 27 | 27 | } |
| 28 | 28 | $this->registerNamesServiceProvider(); |
| 29 | 29 | $this->registerStatefulEloquentServiceProvider(); |
| 30 | 30 | $this->bindRepositories(); |
| 31 | - $this->app->bind(StatsRepositoryInterface::class, function () { |
|
| 31 | + $this->app->bind(StatsRepositoryInterface::class, function() { |
|
| 32 | 32 | return new CacheableStatsRepository(new StatsRepository()); |
| 33 | 33 | }); |
| 34 | 34 | } |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | if (!$this->app->routesAreCached()) { |
| 86 | 86 | $router = app('router'); |
| 87 | - $router->group(['namespace' => 'Scool\Inventory\Http\Controllers'], function () { |
|
| 88 | - require __DIR__.'/../Http/routes.php'; |
|
| 87 | + $router->group([ 'namespace' => 'Scool\Inventory\Http\Controllers' ], function() { |
|
| 88 | + require __DIR__ . '/../Http/routes.php'; |
|
| 89 | 89 | }); |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | private function loadViews() |
| 97 | 97 | { |
| 98 | - $this->loadViewsFrom(SCOOL_INVENTORY_PATH.'/resources/views', 'inventory'); |
|
| 98 | + $this->loadViewsFrom(SCOOL_INVENTORY_PATH . '/resources/views', 'inventory'); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | private function loadMigrations() |
| 105 | 105 | { |
| 106 | - $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH.'/database/migrations'); |
|
| 106 | + $this->loadMigrationsFrom(SCOOL_INVENTORY_PATH . '/database/migrations'); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | ScoolInventory::configs(), 'scool_inventory' |
| 126 | 126 | ); |
| 127 | 127 | $this->mergeConfigFrom( |
| 128 | - SCOOL_INVENTORY_PATH.'/config/inventory.php', 'scool_inventory' |
|
| 128 | + SCOOL_INVENTORY_PATH . '/config/inventory.php', 'scool_inventory' |
|
| 129 | 129 | ); |
| 130 | 130 | } |
| 131 | 131 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | private function publishTests() |
| 136 | 136 | { |
| 137 | 137 | $this->publishes( |
| 138 | - [SCOOL_INVENTORY_PATH.'/tests/InventoryTest.php' => 'tests/InventoryTest.php'], |
|
| 138 | + [ SCOOL_INVENTORY_PATH . '/tests/InventoryTest.php' => 'tests/InventoryTest.php' ], |
|
| 139 | 139 | 'scool_inventory' |
| 140 | 140 | ); |
| 141 | 141 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('inventories', function (Blueprint $table) { |
|
| 16 | + Schema::create('inventories', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('public_id'); |
| 19 | 19 | $table->string('name', 80); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $table->softDeletes(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - Schema::table('inventories', function ($table) { |
|
| 36 | + Schema::table('inventories', function($table) { |
|
| 37 | 37 | $table->foreign('material_type_id')->references('id')->on('material_type')->onDelete('cascade'); |
| 38 | 38 | $table->foreign('brand_id')->references('id')->on('brand')->onDelete('cascade'); |
| 39 | 39 | $table->foreign('model_id')->references('id')->on('brand_model')->onDelete('cascade'); |
@@ -11,57 +11,57 @@ discard block |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 14 | +Route::get('/', function() { |
|
| 15 | 15 | return view('welcome'); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | -Route::get('/inventory', function () { |
|
| 18 | +Route::get('/inventory', function() { |
|
| 19 | 19 | return view('inventory'); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | -Route::get('/manteniments', function () { |
|
| 22 | +Route::get('/manteniments', function() { |
|
| 23 | 23 | return view('manteniments'); |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | -Route::get('/providers', function () { |
|
| 26 | +Route::get('/providers', function() { |
|
| 27 | 27 | return view('providers'); |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | -Route::get('/location', function () { |
|
| 30 | +Route::get('/location', function() { |
|
| 31 | 31 | return view('location'); |
| 32 | 32 | }); |
| 33 | 33 | |
| 34 | -Route::get('/material-type', function () { |
|
| 34 | +Route::get('/material-type', function() { |
|
| 35 | 35 | return view('material-type'); |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | -Route::get('/brand-model', function () { |
|
| 38 | +Route::get('/brand-model', function() { |
|
| 39 | 39 | return view('brand-model'); |
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | -Route::get('/brand', function () { |
|
| 42 | +Route::get('/brand', function() { |
|
| 43 | 43 | return view('brand'); |
| 44 | 44 | }); |
| 45 | 45 | |
| 46 | -Route::get('/vue', function () { |
|
| 46 | +Route::get('/vue', function() { |
|
| 47 | 47 | return view('vue'); |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | Route::resource('inventory', 'InventoryController'); |
| 51 | 51 | |
| 52 | -Route::get('foo', function () { |
|
| 52 | +Route::get('foo', function() { |
|
| 53 | 53 | return 'Hello World'; |
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | -Route::get('/mnt/provider/create', function () { |
|
| 56 | +Route::get('/mnt/provider/create', function() { |
|
| 57 | 57 | return view('create'); |
| 58 | 58 | }); |
| 59 | 59 | |
| 60 | -Route::get('/test/datepicker', function () { |
|
| 60 | +Route::get('/test/datepicker', function() { |
|
| 61 | 61 | return view('datepicker'); |
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | -Route:: get('dashboard', function () { |
|
| 64 | +Route:: get('dashboard', function() { |
|
| 65 | 65 | return view('dashboard'); |
| 66 | 66 | }); |
| 67 | 67 | |
@@ -102,6 +102,6 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | Route::get('tasks', 'DashboardController@tasks')->name('tasks'); |
| 104 | 104 | |
| 105 | -Route::group(['middleware' => 'web'], function () { |
|
| 105 | +Route::group([ 'middleware' => 'web' ], function() { |
|
| 106 | 106 | }); |
| 107 | 107 | |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | class SocialAuthFacebookController extends Controller |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Create a redirect method to twitter api. |
|
| 15 | - * |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 13 | + /** |
|
| 14 | + * Create a redirect method to twitter api. |
|
| 15 | + * |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | 18 | public function redirect() |
| 19 | 19 | { |
| 20 | 20 | return Socialite::driver('facebook')->redirect(); |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | class SocialAuthTwitterController extends Controller |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Create a redirect method to twitter api. |
|
| 15 | - * |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 13 | + /** |
|
| 14 | + * Create a redirect method to twitter api. |
|
| 15 | + * |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | 18 | public function redirect() |
| 19 | 19 | { |
| 20 | 20 | return Socialite::driver('twitter')->redirect(); |
@@ -8,10 +8,10 @@ |
||
| 8 | 8 | |
| 9 | 9 | class SocialFacebookAccount extends Model |
| 10 | 10 | { |
| 11 | - protected $fillable = ['user_id', 'provider_user_id', 'provider']; |
|
| 11 | + protected $fillable = ['user_id', 'provider_user_id', 'provider']; |
|
| 12 | 12 | |
| 13 | - public function user() |
|
| 14 | - { |
|
| 15 | - return $this->belongsTo(User::class); |
|
| 16 | - } |
|
| 13 | + public function user() |
|
| 14 | + { |
|
| 15 | + return $this->belongsTo(User::class); |
|
| 16 | + } |
|
| 17 | 17 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class SocialFacebookAccount extends Model |
| 10 | 10 | { |
| 11 | - protected $fillable = ['user_id', 'provider_user_id', 'provider']; |
|
| 11 | + protected $fillable = [ 'user_id', 'provider_user_id', 'provider' ]; |
|
| 12 | 12 | |
| 13 | 13 | public function user() |
| 14 | 14 | { |