uploaded multiple file function getClientOriginalName() on null

hi all i'm working with laravel 5.2 i have multiple uploaded file First: if($request->hasfile('filename')) { foreach ($request->file('fi...
Laravel
23
196

Post reloads the page

Hello, I have an issue that I've never run into before and it's with code pulled from a git repo that is already working perfectly on a live server, but not on my local Lar...
Laravel
22
153

Learn it all wrong first?

What is the point of teaching the wrong way (in great detail) to accomplish a task? Why not teach the right way with detail on why it is the right way? You could make a sep...
General
18
269

Quicker route:cache

We currently run Laravel in a docker image. When building the image we run two steps php artisan config:cache php artisan route:cache The fi...
Laravel
18
169

Laravel does not display images in the view from storage folder

So, guys, I and a friend are working on the same project. We are using GitLab, the same repository, one branch. I used storage:link command to use a shortcut of the storag...
Laravel
17
125

HTML5 validation multiple forms

I need to validate multiple forms in the same page on one button click. I have the following but it's working only for the first from and not for the rest...

Access env variable inside js file

I need to retrieve an env variable inside a js.file. I have prefixed it with MIX_, so that it looks like MIX_MY_VAR=1234. The js file is located public/js, and all js files...
Laravel
14
141

Laravel website with 1500000 users at the same time

I have to build website with worst scenario there is 150000 users will use the website at same time for 5 hours. All my previous projects don't have this much traffic. Prev...
Laravel
13
136

Laravel Passport auth:api Middleware issue

Laravel passport auth:api middleware based function not working on server ,in local its working fine. Route::group(['prefix' => 'api','middleware' =&...
Laravel
13
157

connect website to other database server

hi all i have server A that contain database. server B that contain website. i want to connect B to database in A. how to do that?...
Servers
13
78

API in laravel

im using API to retrive data from database. first view will contain all data. second view will show only the selected data. here my api code public f...
Laravel
12
102

Disable updated_at time of insert

Hi, In Eloquent model I found created_at and updated_at fields are handled automatically. But updated_at field should be populated at time of Update only but I found...

Publish/Deploy site - best practices?

Hello, I've developed a site using Laravel and I'm finally ready to deploy it to the live (shared) server. I've currently just uploaded everything through sftp (with...
Laravel
12
166

laravel error

i got the error : a non numeric value encounterd in laravel 5.7...
Laravel
12
87

Issue with creating my first package

Hello Everyone, I am following this tutorial to create my first package....
General
11
67

Total newbee who's been given an existing site to edit

Hi. I'm stuck right at the beginning! I'm trying to add a new route, but there's no root > routes > web.php file in the site. All I can find is root > app...
Laravel
11
110

Laravel whereBetween with custom attribute not working

Hello I have in Product model variable appends with: protected $appends = ['finalPrice']; public function getFinalPriceAttribute() { if ($t...
Laravel
10
93

How to convert controller things to blade view in laravel

in my laravel app I have following controller function public function filterbrand () { $vehicles = DB::table('vehicles') -&g...
Laravel
10
87

45 Useful JavaScript Tips

As you know, JavaScript is the number one programming language in the world, the language of the web, of mobile hybrid apps (like PhoneGap or Appcelerator), of the server s...

Call to a member function getClientOriginalName() on null

hi all im doing this tutorial but every time it gives the same error....
General
10
96
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels