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
img { | |
width:auto; | |
max-width:100%; | |
height:auto; | |
} |
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
// Route group for API versioning | |
Route::group(array('prefix' => 'api/v1', 'before' => 'auth.basic'), function() | |
{ | |
Route::resource('url', 'UrlController'); | |
Route::resource('user','UserController'); | |
}); |
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
//in the model | |
class User extends Eloquent { | |
protected $softDelete = true; | |
} | |
//in the migration, to create a soft delete column | |
$table->softDeletes(); |