Goran Grbic

Results 6 comments of Goran Grbic

To follow most of MY_Model's code standard and recommendation, your tables should be called articles and users. Nevertheless, it is has_one relation in Article_m model and has_many relation in User_m...

@ua3167 It's ok to make another method and modify data per need in request file: // App\Http\Requests\Category\StoreCategory::class /** * Modify input data * * @return array */ public function getSanitized():...

dashes are fine convention for 'all lower cases' in url string. You can combine dashes and slashes to separate those words by their nature. For example, if you have resource...

I use underscored variant with addition that it is singular in my case. So `MasterProductController` relates with `views/master_product` directory.

> In the [laravel documentation](https://laravel.com/docs/8.x/passwords), I found out kebab case also. > > ``` > Route::get('/forgot-password', function () { > return view('auth.forgot-password'); > })->middleware(['guest'])->name('password.request'); > ``` I like to use...

Snake case should be used in tests regardless Laravel. It differs from regular methods and force developer to pay extreme attention to those. It differs from regular (app) methods that...