Questions tagged as 'laravel'

1
answer

Insert and fetch data in the database per user with Laravel

I need to save information to the database by logged in user. That is, when the user logs in, everything he does will save to the login database. That is, when user X logs in, everything he saves in the database will refer to him (user X)....
asked by 18.02.2017 / 22:29
3
answers

How to get a variable that is in the controller and put inside a view (laravel)

I'm playing with laravel and then came the following doubt. I need to get a variable that is in the controller and put it inside a view. In case I am sending an email with data contained in a form. Basically this is how the user types the inf...
asked by 17.02.2017 / 19:45
1
answer

Display on select bank attributes and edit with Laravel

I was able to include the attributes through an auxiliary table by this question: Save multiple attributes to the same object in Laravel I would now need what was set in this helper table to be selected in the edit form Controller:...
asked by 18.12.2016 / 16:12
1
answer

Optimizing default middleware behavior

I have the following middleware: class OwnerOrAdmin { public function handle($request, Closure $next) { $user = \Auth::user(); $postId = $request->route('post'); $post = $user->posts->find($postId);...
asked by 19.12.2016 / 18:29
1
answer

How to update the PHP version in Laravel?

I tried to install a dependency and it asked for a larger version of PHP. Problem 1    illuminate / support v5.3.4 requires php > = 5.6.4 - > your PHP version (5.5.9) does not satisfy that requirement.    illuminate / support v5.3.1...
asked by 06.10.2016 / 16:22
2
answers

Validation in Laravel 5 in array-type fields?

Through collaborators of the site I was able to ask a question in the question Do a custom validation in laravel 5 validation validation in> ComboBox is checked. Example:    input : text , required_if...
asked by 12.10.2016 / 23:24
1
answer

Controller exists but Lumen says it does not exist

My routes are like this. link < - this is the url I'm requesting $app->group(['prefix' => 'api/v1'], function($app) { $app->get('/', 'CommunitiesController@index'); } Mycontrollerislikethis<?phpnamespaceApp\Models\Contro...
asked by 02.09.2017 / 02:59
1
answer

List and display images in laravel 5.3 storage

Develop an application with Laravel 5.3, where _DocumentRoot_ is in the public folder. Upload images are in storage/app/public , but I do not know how to list these images in a view , I can only display them directly th...
asked by 15.03.2017 / 03:33
1
answer

How to upload image to the Ckeditor interface?

I built a small blog with the help of the Laravel 5.3 framework . In the posting area I'm using Ckeditor , but I'm having trouble building an efficient "upload method / scheme". There are many plugins from Ckeditor itself for this purpose,...
asked by 13.11.2016 / 03:41
2
answers

MethodNotAllowedHttpException in RouteCollection.php - Laravel 5.2

Developing an application using Laravel 5.2, PHP7.0, Apache2 and CentOS 7, I'm having the following error: MethodNotAllowedHttpException . On the local server it works normally ... when I publish to the production server the error occurs, it...
asked by 19.06.2016 / 22:40