$users = User::doesnthave('fuelprices')->with('fuelprices')->get();
class Repository implements RepositoryInterface
или
class Repository extends AbstractRepository
function foo()
{
$numargs = func_num_args();
$arg_list = func_get_args();
$max = $arg_list[0];
for ($i = 0; $i < $numargs; $i++){
if ($arg_list[$i] > $max ) $max = $arg_list[$i];
}
return $max;
}
$a = 1;
$b = 5;
$c = 3;
$d = 1;
echo foo($a, $b, $c, $d);
$movie = Movie::find(121);
...
$movie->files()->save($file);
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
artisan make:notification ResetPasswordNotification
SELECT COUNT(*) FROM views WHERE ip=$ip LIMIT 1;
$intoip = mysqli_query($connection, "INSERT INTO views(ip, country) VALUES('$ip', '$country')");
$rows = mysqli_affected_rows($connection);