konrms konrms
11

Date format in laravel controller

Hello guys. I retrieve some data from my database student_data table. The date of birth inside the table is 19/04/95. (The format is dd/mm/yy). The data is retrieved...
Laravel
11
110
zaster zaster
11

Assign a 0 to a Null value in a request array

I wan to do something like this, before the request goes through a validation public function store(Request $request) { if($request->input...
Laravel
11
108
Cytotoxic Cytotoxic
11

404 page instead of {METHOD} not supported for this route

How can I get the routes to send the user to the standard 404 page if they access a path that is not a defined route. I am getting "{METHOD} not supported for this rou...
Laravel
11
102
Crazylife Crazylife
11

Laravel csrf token mismatch in POST Request with URL

I am getting token mismatch when i call to a url www.test.com/response In my web.php Route::post("response", '[email protected]');...
Laravel
11
95

Issue with Eloquent: API Resources - Conditional Relationships

I think I might have found a bug in Laravel, please see the below code: I am hitting an endpoint which is /api/users/1 public function sh...
WallyJ WallyJ
11

Best Autocomplete for Laravel Projects with MySQL backend

I normally receive awesome help from these forums, but in the Javascript category I posted a question here about Typeahead.js and have received no replies:...
Laravel
11
168
theUnforgiven theUnforgiven
10

Arrays, saving multiple

I have the following, and I want to save then as individual rows as they will be related to a block array:5 [▼ "name_of_blocks" => array:4 [...
brunokaue brunokaue
10

I can't access header in controller construct

Hello guys, before I start, I apologize for my English. I have a controller called AuthController, this controller just used when app have a project like link/projec...
Requests
10
101
Bastos Bastos
10

Updated image does not show correctly

Hello there, I'll need your help because when I display an image that I upload, it show a white square. I have a form that I use for a profil picture, It's working, I can u...
General
10
187
patrickmaciel patrickmaciel
10

composer laravel installer permission denied on Windows 10

Hi guys how are you? Tody I start work on Windows 10 again (previous was MacOS High Sierra). And when I tried execute the command composer global require laravel/inst...
Laravel
10
103
programmer111 programmer111
10

Data is not deleting in laravel

hi m working on a project in Laravel-vue and wants to delete data using sweetalert but when I click on it then nthing happens, during npm run watch it shows this error:...
Laravel
10
108
joe-inz joe-inz
10

Laravel 5.8 does not use sqlite for testing

I've tried many of the solutions I've come across, all of them were for older versions of laravel. but none of them worked, laravel always uses mysql database even when set...
Laravel
10
62
talhaatsix talhaatsix
10

ambiguous column name error |Load Relationship Error

public function getInvestments(Request $request) { $user = $request->user(); $user->load(['user_projects' => function ($pitches...
RuslanJohnBell RuslanJohnBell
10

Laravel resource route

Hi everyone My laravel resource route return me response with empty fields, but in another resource route everything works fine. This is my route list...
Laravel
10
81
Robie69 Robie69
9

Auto Send Email

I'm working on auto sending an email in Laravel 5.4 I've created the desired email template, and tested that it works properly. Now I need to make it auto sen...
tuyenlaptrinh tuyenlaptrinh
9

Where correct word

Hello Everyone. I have a question. I can not solve it. I have this database +--------+---------------+ | id | name | +--------+----------...
ericlbc ericlbc
9

How to follow the "How to Manage an Open Source Project" series?

Can the project built in the "Let's Build A Forum with TDD" series be provided so I can follow just the "How to Manage an Open Source Project" series?...

Not working Laravel and Ajax data insert in to the database

working with Laravel 5.7 and Ajax to insert data and display in the following blade file, <table border="0"> <th colspan="6"...
Laravel
9
104
irankhosravi irankhosravi
9

How to create two columns with @foreach?

HomeController.php public function index() { $slideshows = Slideshow::latest()->get(); $services = Service::latest()->get(); $faqs = Faq::l...
gputignano gputignano
9

Form Request Validation Redirect

How can I control the redirection after a Form Request Validation? Which is the class/method that make redirection?...
Create a New Discussion Button