Laravel 5 php artisan migrate –database parameter not working

i want to migrate database using console command when i try php artisan migrate is working, but when i try php artisan migrate –database=”test” is not working it said [InvalidArgumentException] …

Alias for a route with a fixed parameter value

I have this route: Route::get(‘/MyModel/{id}’, ‘MyController@show’); The method show() accepts a parameter called id and I want to setup an alias for /MyModel/1 so it’s accesible from /MyCustomURL. …

Laravel 5.2 – Selecting only articles that has comments

I built a commenting system, and I’m working on a page that shows all the comments that are waiting for approval. The relationship: Article.php public function comments() { return $this->…

laravel sort an array by date

hello friends I have an array that looks like this: array:3 [▼ 0 => array:6 [▼ “date” => “2016-05-31 15:08:33” 0 => “31 May 16” 1 => “aze” 2 => “2” 3 => “hi” …

How to validate current, new, and new password confirmation in Laravel 5?

I have created the password route, view and method in UserController@getProfilePassword and UserController@postProfilePassword At the moment, if I fill out the new_password field, it gets hashed and …

Using a Progress Bar while Seeding a database in Laravel

I have to seed quite a lot of data into a database and I want to be able to show the user a progress bar while this happens. I know this is documented: https://laravel.com/docs/master/artisan#…

How to use memcached and apc together in laravel?

I want to use both memcached and apc at the same time for caching, how can I configure and use it in laravel.

dump returned values as expanded array in laravel

I am using dump($value) function. I have an associative array with lots of entries in it. I need to see the values right away without having to click the expansion button when dumped. I can use …

Laravel 5 : how to acces in a field on the hasMany table?

i have two models linked with hasMany to many relationship and there are my tables structure clients = id|title…etc roles = id|title…etc client_role = id|client_id|role_id|desc everythings works …

Laravel image paths from controller to view

My image’s path is public/uploads/users/image.png then using src like this: But for every user the image has to be changed. I pass the …