This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8o6C~{U)VKPV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8o6C~{U)VKPV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blatantly.Icky.Choral8.9poole.Adjust.1colonize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--------+-----------+------------------------------------------------------------------+----------------------------------------+---------------------------------------------------------------------+-----------------------------+ | |
| Domain | Method | URI | Name | Action | Middleware | | |
+--------+-----------+------------------------------------------------------------------+----------------------------------------+---------------------------------------------------------------------+-----------------------------+ | |
| | GET|HEAD | / | pages.dashboard | App\Http\Controllers\PagesController@dashboard | web,auth | | |
| | GET|HEAD | _dusk/login/{userId}/{guard?} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--------+-----------+------------------------------------------------------------------+----------------------------------------+---------------------------------------------------------------------+-----------------------------+ | |
| Domain | Method | URI | Name | Action | Middleware | | |
+--------+-----------+------------------------------------------------------------------+----------------------------------------+---------------------------------------------------------------------+-----------------------------+ | |
| | GET|HEAD | / | pages.dashboard | App\Http\Controllers\PagesController@dashboard | web,auth | | |
| | GET|HEAD | _dusk/login/{userId}/{guard?} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I just do a replace to transform something like users.events.inddex in UsersEventsIndex | |
ViewFactory::macro('component', function ($name, $data = []) { | |
$name = str_replace(' ', '', ucwords(str_replace('.', ' ', $name))); | |
return View::make('app', ['name' => $name, 'data' => $data]); | |
}); | |
// In the app.js tiny little modifications to calculate the componentName | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILTRA O USUÁRIO | |
$userToDelete = User::first(); | |
//REMOVE OS PRODUTOS | |
$userToDelete->products()->delete(); | |
//REMOVE O USUÁRIO | |
$userToDelete->delete(); | |
//FILTRA O USUARIO DA LIXEIRA | |
$userToRestore = User::withTrashed()->first(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Schema::create('users', function (Blueprint $table) { | |
$table->increments('id'); | |
$table->string('name'); | |
$table->string('email')->unique(); | |
$table->string('password'); | |
$table->rememberToken(); | |
$table->timestamps(); | |
}); |
NewerOlder