Skip to content
Advertisement

Tag: laravel-5.2

laravel 5.2 cant pass variable to view

I have a very simple controller and view. But for some reason I am unable to pass a variable to my view. Note that echo $project->title inside the router works. Controller: } View: But for some reason I keep getting this error: ErrorException in b605b028d5285b79f4e0043cf14415de5dddcae6.php line 10: Undefined variable: project (View: C:xampphtdocswebcast_moduleresourcesviewshome.blade.php) in b605b028d5285b79f4e0043cf14415de5dddcae6.php line 10 at CompilerEngine->handleViewException(object(ErrorException), ‘1’) in

How to validate phone number in laravel 5.2? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question I want to validate user input phone number where number should be exactly

Manually register a user in Laravel

Is it possible to manually register a user (with artisan?) rather than via the auth registration page? I only need a handful of user accounts and wondered if there’s a way to create these without having to set up the registration controllers and views. Answer I think you want to do this once-off, so there is no need for something

Laravel 5.2 New Password Must differ from Old One

Currently I am working on one project’s authentication module. I want to create functionality of password reset with the constraint that new password and old password must be different. But the problem is, the password is encrypted with bcrypt in database. So I can’t use Different validation rule on that field. I can accomplish it by creating additional function, but

Uncaught ReflectionException: Class log does not exist Laravel 5.2

I am currently trying to clone an existing project of mine from github. After clone I run composer install during the process I receive the following error: Uncaught ReflectionException: Class log does not exist I am running Laravel 5.2 on Centos 7. I have seen references to: Removing spaces within the .env file. Removing the vendor directory & re-installing Removing

Advertisement