cavinz

Laravel : Resources

When we use this resources in laravel route file that doesn’t need to write all command which needs crud application it always create routes filed by default using this resources command in route file   Route::resource(‘Alias’, ‘Controllername’); With this code, Laravel will register eight routes. GET /Alias GET /Alias/:ID GET...Read more …
cavinz

MySql : To get first not null value in select query

If we want to get first not null value we have function in mysql to get this result COALESCE Example : TABLE STRUCTURE ——————————————– | id | customername | mobile | home | work | ——————————————– | 1 | Joe | 123 | 456 | 789 | ——————————————– | 2...Read more …