laravel-5 Questions

3

I'm using Laravel and I just added a new migration for increasing column size. The first generated table has a column named latlong of type Point. I can't modify any column size? When I try to modi...
Bookcraft asked 25/11, 2017 at 9:57

10

Encountered the following error in My Laravel app: FatalErrorException in CollaboPDFController.php line 14: Class 'PDF' not found This is my CollaboPDFController.php: <?php namespace App...
Draw asked 7/12, 2016 at 9:28

4

I am using VS Code 1.33.1 I am trying to go to a file in my code by doing a CTRL + Click but it doesn't seem to work. As you may see, I would like to visit the AuthenticatesUsers file somewhere...
Flexed asked 16/4, 2019 at 6:39

2

Solved

I upgraded my php version in WSL to 7.4 and I am running an application built with laravel-5.5. When I run php artisan in the command line I got this error In Client.php line 1551: Undefined v...
Trochee asked 3/12, 2019 at 10:42

2

Solved

I am using Laravel 5.8 . I use Nikto to scan my site, I saw these issues. Cookie XSRF-TOKEN created without the httponly flag How do I patch these issues in my Laravel Site ? I've tried , but it ...
Brigitta asked 2/1, 2020 at 19:27

4

Solved

I just uploaded my Laravel 5 proyect to the hosting server. The index page almost works, but every link is broken. Every single route returns an Internal Server Error message. This is the actual me...
Actinal asked 12/4, 2015 at 5:52

7

My whole application, made in Laravel 5.2, is working perfectly fine but when i tried to get list of routes through following command: php artisan route:list It shows me following error: [...
Reduce asked 22/3, 2016 at 8:28

8

Solved

I am using Laravel's Mutator functionality and I have the following Mutator: public function setFirstNameAttribute($value) { $this->attributes['first_name'] = strtolower($value); } However I...
Cawley asked 8/5, 2017 at 7:10

3

To display an error while using Laravel Artisan the official Laravel 5.8 documentation says: $this->error('Something went wrong!'); But what's the context of $this? Following is the contents ...
Yawp asked 12/9, 2019 at 20:32

7

I'm doing a union on two queries, and I want to add a where clause to the result, but the where clause is added only to the first query. how can I fix that? $notifications = DB::table('notificati...
Lamination asked 24/5, 2016 at 8:56

6

Solved

I am using Laravel 5.7 I am attempting to upload an image file and validating its upload using built in laravel validation. It keeps responding with 'The file failed to upload.' I am using AJAX t...
Sling asked 21/4, 2019 at 19:48

4

Solved

I am trying to run simple code of cache using memcache in my laravel project. I have added CACHE_DRIVER=memcached in my .env file. I have created folder of memcache in C drive and added a file me...
Doityourself asked 10/12, 2015 at 7:58

7

I am getting below error when i run php artisan passport:install [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "passport" namespace.
Cathrin asked 4/4, 2017 at 5:50

11

I get the following error (on every page) app.js:703 Mixed Content: The page at 'https://sitename.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://sitename.co...
Antique asked 30/10, 2017 at 15:16

2

Solved

I want to create a custom middleware that only if the user is authenticated and the email is a certain email to access the /admin page. Although, when I specify my custom route and then a redirect...
Columbia asked 2/11, 2017 at 16:47

7

I have a controller with the "getUsers" function in a controller called "UserController" , and inside it I want to call a function of the "CarController" controller called "getCars", the two option...
Psalm asked 8/11, 2018 at 14:1

5

I have read couple of post regarding the issue of checking the file extension while upload a file using laravel. I have the same issue and didn't file the solution even if spending an hour behindi...
Bedlamite asked 23/2, 2016 at 6:39

6

Solved

I have a field "image", type is file and need only to validate if image is selected, means it can be also empty. I tried it so: 'avatar' => 'mimes:jpeg,jpg,png,gif|max:100000', but so it is als...
Placencia asked 11/1, 2017 at 10:43

7

Solved

So I am new to laravel and was just trying out some code to clear the basics,but however after creating a new controller to handle a route.It throws a fatal exception saying Class 'Controller' not ...
Newton asked 14/11, 2015 at 17:44

16

When updating my Post model, I run: $post->title = request('title'); $post->body = request('body'); $post->save(); This does not update my post. But it should according to the Laravel ...
Virgulate asked 24/10, 2017 at 20:55

2

I'm trying to upload my files as circles, but I can't make it work. I've seen some topics about applying a mask to the image, but when I apply the mask it takes way to long and the server shuts the...
Lilybel asked 13/4, 2015 at 10:5

5

Solved

I have a registration form with unique email validation. When I enter different character case, emails does not apply unique validation. [email protected], [email protected], [email&#16...
Cartography asked 9/2, 2018 at 12:1

4

Solved

I have use in model . $data = DB::select('select * from users'); return $data; But in controller I have got like this. Array ( [0] => stdClass Object ( [Id] => 10 [Name] => Sachin ...
Memling asked 27/7, 2017 at 5:51

2

Solved

I am using Laravel with a local filesystem as storage driver. I have understood that I can save files in the storage/public folder to make them accessible through myapp.dev/storage/image.jpg. I ha...
Discretion asked 11/10, 2017 at 10:29

14

Solved

I need to execute a stored procedure after my form submits data. I have the stored procedure working like I want it, and I have my form working properly. I just do not know the statement to execute...
Exhaustion asked 28/12, 2015 at 16:27

© 2022 - 2025 — McMap. All rights reserved.