MethodNotAllowedHttpException with Laravel5.4 when uploading files bigger than 1MB online, but it works perfectly on localhost

I'm using Laravel 5.4 for my website, and I'm getting a problem when the user tries to upload files bigger than 1MB. This problem doesn't appear on localhost. The error I g...
me10071990 me10071990
30

What is best way to make every category page with new designed

Is it possible to make new design for every category as I have created category with id ex home id 1 product id 2 contact us id 3 about us id 4 thank you all...
Laravel
30
167
babonday babonday
29

how do you handle a user when their session timesout in laravel 5

wow sorry to ask this question but it seems everyone asks this question on here or stack overflow at very different times in their journey.. i must be looking in the wrong...
Laravel
29
159
pmusa pmusa
20

Why Mass Assignments?

Hello, I'm new to Laravel. I learned how to solve the issue with the MassAssignmentException, however I do not understand why such a concept was introduced. Here is for exa...
Laravel
20
222
AbdulBazith AbdulBazith
15

How to add a foreign key to a table after migration done laravel

Guys i have doubt. i have a table with 4 columns. think that, i have a table product with 4 columns product_name, rate, min quantity, date...
Laravel
15
154
Chron Chron
14

Address already in use

This error didn't occurred until now. Whenever I run php artisan serve, It gives me 127.0.0.1:8000, it works a couple of minutes but after that th...
Laravel
14
127
thebigk thebigk
14

Grouping By Given Values in Single Column

My database table is as follows - conv_id | user_id 1 | 100 <-- exists 1 | 200 <-- 3 | 500 3 | 600 4 | 100 <-- 4 | 800 <--...
oliverbusk oliverbusk
13

Advanced relationship in Laravel

In my web application, users can upload documents or emails to channels. A channel can furthermore then have document_ta...
Laravel
13
120
fantasma fantasma
12

Laravel Telescope Blank Page

Hi. I set up Laravel Telescope but /telescope is completely blank. Database is filled with records but nothing shows on dashboard More details here...
Laravel
12
60
Aqeel94321 Aqeel94321
11

update Controller

I have issue related to one to many relation in update method.In update i want to check value from database. if value have then update it otherwise create new one. here is...
Laravel
11
118
marcosdipaolo marcosdipaolo
11

Cannot connect to database with docker and pdo_mysql in laravel

Cannot connect to database with docker and pdo_mysql in laravel The errors are: -SQLSTATE[HY000] [2002] No handler for this scheme (that's with 'localho...
Laravel
11
80
packy packy
11

Scope filter relationship and where clause

So I am doing a scope filter on a model Account. An account has many users. I am trying to get all the accounts that user has and then filter down by the name....
MartinZeltin MartinZeltin
11

Query takes 10 seconds if I add orderBy and paginate

I have this query but it is taking 10 seconds to execute. If I remove orderByRaw nad paginate then it only takes 15 ms. But I need to order it and paginate it. Is there ano...
Eloquent
11
138
timgavin timgavin
11

Trouble with defining relationships

I'm having a hard time figuring out the relationships between my tags and posts. I created a tagging system that would store tags in one table (tags) an...
emfpc emfpc
11

Passing the api_token in header when the user Log In

So far I was able to understand the whole API thing in Laravel thanks to you guys. I'm able to see the information of the user in my controller if the user passes the api_t...
Laravel
11
74
RootTech RootTech
10

Creating a contact form without controllers and migrations

I have a contact blade, I want it to directly be sent to my email once the submit button is click. Please what method and action should I use....
Laravel
10
105
mouzak mouzak
10

No query results for model [App\salaries] id

hi, how to resolve this error please? No query results for model [App\salaries] id controller $data['sala'] = salaries::findOrFail($id) ->relationPaie()->save(new pai...
Laravel
10
82
memele memele
9

How to sort posts by latest commented

I have a One to Many relationship for a Post model and a Comments model. I want to sort posts by latest commented - if someone posts a new comment that post goes to the top...
RootTech RootTech
9

Using a Count both where conditions in blade file.

I have a table, 'Users' and columns Id,name,lastname,email,referrer,and so on. I want to count for the number of people each user has referred. in the blade f...

My add group member button not fuctioning (javascript)

"Add Group Member" button supposedly will display new row for user to enter data like this....
Create a New Discussion Button