Questions tagged as 'laravel'

0
answers

Problem to compile Gulp in Laravel 5.3

Error while running Gulp laravel 5.3, I have reinstalled all the packages. What to do? Here is the error you give me: Vue packages version mismatch: [email protected] [email protected] This may cause things to work incorrectly...
asked by 29.09.2016 / 16:47
1
answer

Assign and send checkbox value unchecked in Larevel

I have a form where the user can activate or deactivate certain options with or without a checkbox . <input name="ppra" type="checkbox" data-oFF-text="INATIVO" value="1" data-off-color="danger" data-size="small" data-on-text="ATIV...
asked by 28.09.2016 / 19:04
1
answer

Make append in a specific line of a text file

Good morning, I have a function that makes an append in a certain line of my xml file. function addInFile($file, $lineNumber, $content) { $fileTemp = "$file.bak"; $currentLine = 0; $fpRead = fopen($file, 'r'); $fpWrite = fopen...
asked by 03.10.2016 / 15:47
0
answers

Problem with a route not defined in Laravel

I hosted my Laravel project, however when I try to access: link it ends up redirecting to = > link On the routes there is nothing referring to this view public (This route is unnecessary, I do not know for what reasons it appe...
asked by 14.09.2016 / 18:13
0
answers

How to choose the default folder when executing the "styles" and "scripts" functions of Elixir?

Using Laravel Elixir, I usually use the styles and scripts functions to concatenate the assets to a single file. However, it seems that by default these two functions try to read files from the resources/assets folder. Wh...
asked by 30.09.2016 / 19:20
1
answer

Filter results with ManyToMany relationship in laravel

I have 2 tables where there is a relationship, client and content using a pivot table contents_clients , when selecting the contents of client "X" I can know what contents belong to it, but I can not apply a filter ref...
asked by 29.08.2016 / 16:43
2
answers

List of Tables

Creating my migrations in Laravel I had the following doubt: I have these two tables: Used ID MARK_NAME_ID MODEL YEAR TRADEMARKS ID NAME migration to save the tag ID I would do so: $table->integer('marca_id')...
asked by 28.08.2016 / 15:59
0
answers

Using Laravel's cache

I would like to know if the way I'm working with cache is correct and if there is anything more practical for it. Follow the code: <?php namespace App\Modules\Admin\Controllers; use Cache; use Auth; class Network extends Controller {...
asked by 18.09.2016 / 05:28
0
answers

Relationship to laravel

I'm trying to create a relationship with the tables in my database using laravel, but with some difficulty in logic. I have the tables; content , client and user A user can have several client and a cl...
asked by 26.08.2016 / 16:19
1
answer

Remove relationship in return json from Laravel's Datatables package

I have the following code snippet using laravel and the Datatables package $products = Product::with('enterprise') ->select(['id', 'enterprise_id', 'name']) ->whereIn('enterprise_id', [1, 2]); retur...
asked by 26.08.2016 / 17:29