Questions tagged as 'laravel'

1
answer

Consult many many laravel 5.6

Well as you can see I am learning laravel, that is why I need help from the experts in a clear way if it is not too much trouble not to get lost. ' I want to receive this fix in my vue component. and it does not work with the foreach in the...
asked by 16.11.2018 / 01:42
1
answer

How can I insert a sale using Laravel Eloquent?

How can I insert a sale by obtaining an instance of both models: ('departments', 'people'), with relationships of eloquent.     
asked by 01.02.2018 / 21:24
2
answers

Problems saving data with LARAVEL 5.5

I have 2 methods to save and another to consult and I have them as follows: public function store(Request $request) { $comment = new Comment(); $comment->user_id = $request->user_id; $comment->factura_id = $request->f...
asked by 13.01.2018 / 21:35
2
answers

How can I see my laravel project in a local network

Does anyone know how I can see my project in laravel using another device in the same local network? Enter my ip in the browser and open the wamp configuration and when I enter the name of my folder, it opens the main one but the other pages...
asked by 19.11.2017 / 03:28
1
answer

count the number of elements that a request laravel 5.5 contains

I am trying to count the amount of data my Request brings but it returns the value 1, when in fact it contains 6 data. public function Guardar(Request $request) { echo count($request); }     
asked by 18.10.2017 / 19:25
1
answer

Php artisan error no direct script access allowed

I am working with laravel 5.2 and php 7.1.7 , the problem is that when I try to use some artisan command to raise the server with the command php artisan serve I get:    no direct script access allowed on the console and it will n...
asked by 21.09.2017 / 14:30
1
answer

Check with a search engine in laravel

I wanted to know if the query is well done Where to find the posts of a blog that contain a word "query": public function search(Request $request) { //guarda la palabra en $query $query = $request->input('query');...
asked by 19.09.2017 / 02:16
1
answer

Laravel show articles ordered

How can I get a quantity of items ordered from the newest to the oldest (currently it appears from the oldest to the newest) in laravel 5.4 in the controller, the function of the home page home is like this: public function home(){ $...
asked by 29.08.2017 / 06:39
2
answers

Error Array to string conversion

I am trying to send two arrays to my BD, an array of activities and another array of points !! so the form, and the error that throws me is an array to string conversion I do not understand why, could you help me? error 1/2 is:...
asked by 05.09.2017 / 04:11
1
answer

Define a global variable to be used in several views independent of the controller of each view

I need to declare a globlal variable, something similar to: $user = Auth::user(); I am consuming an API and I need to get the $user variable in the login form in a global way to use it in the whole app. I am not very familiar with th...
asked by 03.08.2017 / 00:49