Questions tagged as 'laravel'

2
answers

Error while playing Composer

I created a virtual machine with Vagrant and used PuPhpet. However when I run Composer I only have this error list, I have already created 4 different machines and always the same error. Has anyone here been through this? $ composer create-pro...
asked by 06.04.2016 / 14:17
1
answer

Laravel session does not work on another page

I'm working on a project with laravel, in it I created a session variable that takes a parameter from the url as follows: if(!empty(Input::get('lang'))){ $lang = Input::get('lang'); Session::put('lang', $lang); } else { $lang = "e...
asked by 05.04.2016 / 20:52
1
answer

How do I use the same app / config / local / database.php configuration when I'm running in "testing" environment?

In Laravel 4 , we have three types of environments that can be defined: local , production and testing . I've even posted something about configuring the local environment here: # I like to use the above con...
asked by 01.03.2016 / 13:20
1
answer

ModelFactory is not generating $ faker data for some tables

I've been using the default% Laravel 5% for some time, and everything was going ok, but for a few days now I've stopped generating data from the ModelFactory library for some tables, although it's still normal for others. When you star...
asked by 23.07.2015 / 06:14
1
answer

@yield does not display content

I'm learning Laravel 5.1, I ran into an error using @yield . I can not pass the contents of another file to the file where I want to include it. Next I have the content I want to insert into the default-home.blade.php file inside...
asked by 24.07.2015 / 02:16
1
answer

contact form with Laravel 5.1

I need to create a simple contact form with laravel 5.1, however, as I am more of a front-end, I would like some idea of what I can do to create this form, some websites even explain how it is done, but it is not with the current version of lara...
asked by 05.07.2015 / 22:57
1
answer

Return Json with related data - Laravel

I'm creating a REST API but I stumbled on this issue where I can not imagine a solution. In my database I have 2 tables; Table 1 - General product data such as name, code, sku and description Table 2 - Variable product codes. Table 3...
asked by 30.11.2015 / 13:08
1
answer

CSS Blade Laravel

I'm starting now with Laravel 5.1, I was left with a question regarding blade. For example, I want to pass several CSS or JS files from the page in question using Blade notation. My main file looks like this: <html> <head> &...
asked by 08.07.2015 / 04:33
1
answer

Doubt Laravel 5 - Libraries and Functions

<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Controllers\Controller; use App\ListaProduto; use App\Produto; use Input; use Illuminate\Support\Facades\Request; use Session; class Prod...
asked by 13.08.2015 / 18:29
2
answers

How to Type in a Select?

How can I make a select work also as a search field? Type, the client types as if typing in a input text for example, and the select options are being filtered according to what he typed. I'm not sure if it would be a sel...
asked by 03.02.2016 / 18:11