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” …
Tag: laravel
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 …
Class AppHttpControllersAdminController does not exist
i have this error when user return from login to home page i can’t understand what is it i am doing MultiAuth in laravel 5 and also help me if i can use login function and other registration function that is already available for users table i have no idea how to do that with already written functions t…
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.
Merge request not working
I am trying to replace the ‘pic’ value, which is set as an array when it comes in, with an image file name but the merge does not seem to be working. I am not getting any errors in the log with the below code. I guess I am not allowed to embed pictures yet so there is links below.
Determine if is a soft delete in a event handler Laravel
I have this event handler: When I use $user->forceDelete(); and $user->delete(); this event is triggered and delete all comments. This is not ok because I want this event to be triggered only on $user->forceDelete();. In my case the other tables does not have soft delete implemented Answer You can ch…
How does Laravel Artisan created php files with properly formatted lines
This is just a general question, how does Laravel Artisan able to create proper .php file e.g. make:controller with the correct formatting and line breaks? Is there a good PHP script which can help one develop similar php codes. Thanks Answer PHP files are just text files, you can easily create them with any …
Laravel Call to undefined function IlluminateViewCompilerstoken_get_all()
I have AMPPS and just now tried installing Laravel on it using this tutorial. As soon as i created new project and tried to run it i got below error I have no idea what is this error, I am totally new to laravel. I am using AMPPS, I tried php version 5.5 and 5.6 Answer You probably don’t install
How to Display Validation Errors Next to Each Related Input Field in Laravel 5?
Default solution is trivial: and I can include errors.blade.php anywhere. Is there any way to extract each element and display it next to input field that holds the value that failed? I assume that would require me to define a lot of conditional if statements next to each input, right? How to sort this proble…