Questions tagged as 'laravel'

1
answer

Integrate Materialize css in Laravel 5.4

Could someone tell me how to install, materialize css in my project done in laravel ? I am currently working with the 5.4 version of laravel I ask this question, because I know it comes with bootstrap installed when you make a new project. If...
asked by 26.04.2017 / 06:37
0
answers

Login by Api Token Laravel 5.4

I'm making a login by api_token using laravel 5.4 The route is defined as Route::get('/test', 'Auth\authenticatedApiLogin@authenticatedApiLogin')->middleware('auth:api'); And if I do within the method: dd(Auth::guard('api')->user...
asked by 27.04.2017 / 17:25
1
answer

Show message with Flash in Laravel 5 when redirecting

I am trying to display a message (Notification) when creating a user using Flash (Laracast). In my user controller I have the store function: public function store(Request $request){ $user = new User($request->all()); $user->...
asked by 12.01.2016 / 04:16
1
answer

Select Items of a Select Multiple in laravel JS

View <div class="form-group"> <label class="col-sm-3 control-label" for="exampleInputEmail1">productos para la orden:*</label> <div class="col-sm-5"> {{ Form::select('products[]', $products, null, ['id' =...
asked by 12.05.2016 / 21:26
2
answers

What are the models for Laravel 5.3 for?

Excuse my ignorance. I create the models in the following way: php artisan make:model Marcas -m And the model I leave it as it is created: namespace App; use Illuminate\Database\Eloquent\Model; class Marcas extends Model { // } I...
asked by 14.01.2017 / 22:32
2
answers

Problem with query like

Good morning, I have this query that is like a search engine, only for products where the brand is "strong" .. in the parameter $ word, it can only bring a description of the product or code. When I send a description of the product, the sear...
asked by 27.12.2017 / 14:03
4
answers

How to hide the url in laravel when you use get to edit?

I want to edit a record using its id and I have the following code in my view: <a href="{{route('guest.edit',$g->id)}}" class="btn btn-simple btn-warning btn-icon edit"><i class="ti-pencil-alt"></i></a> And so I h...
asked by 08.11.2017 / 20:29
1
answer

how can I get the error code in a try catch in laravel?

I have a "create" method public function crear(Request $req) { $rules = array( 'nombre' => 'required', ); $validator = Validator::make ( Input::all (), $rules ); if ($validator->fails()){ return Response::...
asked by 01.11.2016 / 18:58
1
answer

Integrate Laravel 5 Apache in linux

Good I am trying to integrate laravel and apache but the routes are not recognized by the Apache. Well I show the configuration that I have in the virtutalHost of apache2 I have <VirtualHost *:80> #Alias /loginseg /var/www/html/...
asked by 20.05.2017 / 22:50
3
answers

How to hide ID on routes laravel 5?

I have the following URL: domain.com/user/3/edit. I would like to know if it is recommended that the user's ID appear in the URL, or a URL such as: dominio.com/usuario/edit. Should the last option be better, how could it be done? modifying...
asked by 03.11.2016 / 13:53