nickywan123 nickywan123
26

assertSee not working

I wrote a test case like below: /** * A basic feature test example. * * @test */ function an_authenticated_user_may_create_a_new_...
Laravel
26
198
redroseamit redroseamit
22

update function is not working laravel 6 i am using resource controller

/* here is the controller */ public function update(Request $request, $id) { $categories = Categories::findOrFail($id); $this->validate($request,...
Laravel
22
167
Loyd Loyd
22

Display string data in blade blade loop

How to display the bellow image string in a blade I only want the basename App\Post {#1308 ▼ #fillable: array:5 [▶] +with: array:1 [▶] #connectio...
Loyd replied
Solved
Laravel
22
214
van1310 van1310
18

What is the best way to export 1 million records

its took 10 minutes for 1 millions records dowload so how to reduce time for 1 click to downlaod in seconds public function query() { $query...
Laravel
18
189
Hadayat Hadayat
15

Facing issue when Customizing the laravel auth | Created the Custom laravel Login Controller

I Created the custom login auth in my application, and I want to add some other stuff in login query so I can validate the user active users. I use this function to...
Laravel
15
170
Mystic Mystic
15

Unauthorized action

I am a beginner with Laravel. I am working on policy, I created different profiles for different users. They can all update their profiles but I realised there was some sec...
Laravel
15
122
simonw simonw
14

Large amount of data. Best way to iterate over, without getting memory exhaustion?

So I have a lot of data to process. Roughly 5000 rows, and so when fetching, this generates a Collection of 5000 models. Now each of those models has maybe 20 attributes th...
Snapey replied
Solved
General
14
212
zunkt zunkt
13

Update Key and Value use whereIn

Hi! I want to update value like that id key value 1 site_name Lavarel 2. site_title LaravelCom Here is my controller about update...
zunkt replied
Solved
Laravel
13
172
me10071990 me10071990
13

Error Call to undefined function App\Http\Controllers\

i m trying to read set the connection and getting error in controller. Please help, thank you....
Laravel
13
85
nickywan123 nickywan123
12

Is TDD worth the practice?

I am watching Laracast build a forum course and noticed the author practice TDD frequently, now I know there's no harm in doing it and a big advantage in the long run but i...
General
12
176
CodeCanyon CodeCanyon
12

Passport 9 installing with Laravel 7 without using composer install/update commands(manually add package)

I need to install Passport 9.0 with Laravel 7 without using composer since my firewall blocks composer install/update. I downloaded passport package from Github and...
Laravel
12
70
Kachi_dk Kachi_dk
12

syntax error, unexpected 'email' (T_STRING), expecting ')'

<div class="input-group no-border form-control-lg {{ $errors->has('email') ? ' has-danger' : '' }}">...
Laravel
12
90
timtom timtom
11

Update return false

Hello, I try to do an update request but the request return false. Do you know if something exist to see the error in details (and not just get false in return ...)...
Eloquent
11
114
noblemfd noblemfd
11

gender dropdown is not loading data on edit blade

I have this controller: public $genders = [ "0" => "Female", "1" => "Male", ]; public $maritalstatuses...
Laravel
11
113
mvind mvind
11

Unable to prepare route [logout] for serialization.

Hi I can't run php artisan route:cache. I moved all my closures into controllers, but when I run the command I get the following error: p...
General
11
146
KLM113 KLM113
10

Can you programmatically build a request?

I have a method that was initially coded to process a form, it receives form data through an Illuminate\Http\Request parameter. Now I'm in the need to use the same m...
Requests
10
142
fdusautoir fdusautoir
10

Model Class instance question

Hi, I have a question about something. Consider the following code : App\Models\User::first(). This returns an User class with its attributes li...
General
10
139
ehabafia ehabafia
10

Login a user to confirm

Hi, I am looking to make the user login while he/she is logged in already to confirm that he is the user. It's basically, there is a sensitive action the admi...
Laravel
10
114
Alphyo Alphyo
10

[Homestead]Easiest way to currently run a legacy project?(Laravel 4.2/php 5.6)

Hi, sorry for the newbie question. I am really pushing hard to catch up as fast as I can with my new team. I am pretty much confused atm on how setup my homestead to be ab...
Laravel
10
87
Create a New Discussion Button