How to define model based on role I have a table where I save users. Users can either be a student,...
Laravel 5.5 requires PHP 7.0.0 or higher. So fistly update PHP version after that you can update Lar...
To define an accessor, create a getFooAttribute method on your model where Foo is the "studly&q...
You this sql query. SELECT Id = 1, MarkId = 1, Mark = 15 INTO #Temp UNION SELECT Id = 1, MarkId = 2,...
You can send CSRF token in form. <input type="hidden" name="_token" value="{{ csrf_token() }}">...
You can try this code: public function updateOrCreate(array $attributes, array $values = []) { retur...
The Laravel portal for problem solving, knowledge sharing and community building.