Questions tagged as 'laravel'

1
answer

Error "Class Blog \ Http \ Requests does not exist" in the request

Trying to make the user registration generates the error "Class Blog \ Http \ Requests does not exist" Here my UserController <?php namespace Blog\Http\Controllers; use Blog\Http\Requests; use Blog\Http\Requests\CrearUsuarioRequest...
asked by 27.09.2016 / 18:28
1
answer

Install Laravel Project IIS 8 Windows Server 2012

I am implementing a laravel project in IIS 8 Windows Server 2012. But I have problems for the routes to work. I can see the index but when I want to access a view it returns error 404. Has anyone had any experience doing this?     
asked by 03.06.2016 / 21:47
0
answers

Migration in Laravel

I want to make a migration to MySQL, when I put the php artisan migrate instruction in my command line, I get the following error in console:    In Connection.php line 664:                                                             ...
asked by 05.01.2019 / 02:33
0
answers

Laravel subqueries in query builder

I'm trying to understand how to create queries with subqueries in Query Builder. The problem is that the official documentation is extremely brief and not very explanatory in some specific points. In particular, the methods joinSub() and...
asked by 05.01.2019 / 19:12
1
answer

Laravel - Does not save image with Storage ::

I'm trying to save an image using the Storage of Laravel Storage::disk('avatars')->put($avatarName, $request->file('avatar')) $avatarName = avatar'.time().'.'.$request->file('avatar')->getClientOriginalExtension(); The...
asked by 02.01.2019 / 22:03
0
answers

Problem when creating image with Faker

Create a factory in which I need to store an image. The factory is: $factory->define(\App\FinDra\Entities\Surface\SurfaceModel::class, function (Faker $faker) { return [ 'surface' => str_random(5), 'color' => '#...
asked by 02.01.2019 / 12:18
1
answer

Scope in Laravel with related table

I'm stuck in a filter: These are my tables: My model for Movement public function factura() { return $this->belongsTo('App\Factura'); } public function cuenta() { return $this->belongsTo('App\Cuenta'); } public fu...
asked by 29.12.2018 / 23:58
0
answers

How to recover sessions from Laravel 5.7 users?

Hi, I'm doing an application where users can only have one session open, no matter what device they are on. Example: a user logs into a web browser. After 1 minute he decides to change to his cell phone. In this case, the web browser sessi...
asked by 27.12.2018 / 19:51
2
answers

Problem with editing in laravel 5.5

I have a module to edit, which works very well, I show the controller and the view below. public function edit(Request $request, $id) { $request->user()->authorizeRoles(['admin','referido']);...
asked by 29.12.2018 / 19:24
1
answer

Laravel, call additional method of the Model in Eloquent query

In my Deegre model I have a method fullName () that returns string <?php namespace App; use Illuminate\Database\Eloquent\Model; class Deegre extends Model { public function fullName(){ $level = [ "1" => "Primer ",...
asked by 27.12.2018 / 17:40