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
// This returns me all the users in the table... | |
$users = User::all(); | |
// But I would like to search on a field in that users table: | |
$users = User::all()->where('first_name','like','%'.$query.'%')->toArray(); | |
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
$user = Auth::user(); | |
$role = $user->role; |
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 | |
class NewProject extends \Eloquent { | |
protected $fillable = []; | |
public static $campaignTypes = array( | |
'' => 'Choose One', | |
1 => 'Active', | |
2 => 'inactive', | |
3 => 'Deleted', |
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(["before" => "guest"], function() |
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 | |
/** | |
* Routes | |
* | |
* | |
*/ | |
Route::group(["before" => "guest"], function() | |
{ |
NewerOlder