BladeRunner BladeRunner
8

404 Error when i use FormRequest

When I use form request for validation of data I receive 404 error as if the page does not exist. If I then switch to normal Request than everythng works well....
dinni dinni
7

how to run php artisan serve in background

i want the server to be running even wen i ligged out from the session. When i was using ubuntu server "sudo nohup php artisan serve --host xx.xx.xx --port=8080 &&...
Laravel
7
1663
irankhosravi irankhosravi
2

The GET method is not supported for this route. Supported methods: POST.

Look at my codes web.php Route::post('/code', '[email protected]')->name('code'); Route::post('/send', '[email protected]')->name('send');...
Laravel
2
12007
shez1983 shez1983
2

Policies/Gates for custom things?

so i like the whole syntax @can().. but i wondered if i could do a custom one? ie if i have some logic: if ( lesson has invoice, and invo...
Tips
2
179
BladeRunner BladeRunner
1

Axios in Nuxt doesnt work

I have an axios call which does not work. export default { data () { return { product: null } }, async asyncData ({ params, a...
Vue
1
69
KLM113 KLM113
4

Auth middleware, allow specific users only

I add the routes that require the user to be authenticated in a block like this Route::group(['middleware' => ['auth']], function() { });...
General
4
106
admirhusic admirhusic
1

Double click and single click on same element in Vue.js

I want to implement something like instagram does on photos. When the user clicks on the photo the app opens the current post, but when the user double clicks on the photo...
Vue
1
38
chrisgrim chrisgrim
4

Clean way of handling error toString() must not throw an exception

Hi All, I am setting up a getGravatarAttribute in my project. public function getGravatarAttribute() { $hash = md5(strtolower(trim($this->attr...
Steve-M Steve-M
3

How accessor work?

I'm not sure how they work, I was thinking that accessor fires when you access the attribute, however when I try to insert new record my accessor fires. I store in my datab...
Arnas42 Arnas42
2

multiple (multiple selects) problem

I am creating events management system and one thing I want to do is select multiple people (groups) who are responsible for different type of tasks, for example two people...
Davieboy Davieboy
2

how to check Vue is loaded correctly

When i created the App im sure i used the command php artisan ui bootstrap --auth Im trying to create a vue component on the laracast build a forum tut...
robwinkky robwinkky
12

How to exit the Tinker console?

I understand how to use Tinker, I cannot figure out to quit it though. I've tried exit(); quit(); exit; quit; ctrl-c! It should be an easy one, but I am not sure where to...
General
12
1676
Heimdall Heimdall
5

Only one display on relation with pivot table

Hello I have problem and i don't know how resolve it ... I have 3 table : dish / category and pivot table Each dish can belong to several categories an...
boyjarv boyjarv
6

Loop through $users in React

At the moment, I have set an array [1,2,3,4] as you can see below: {[1,2,3,4].map((userId) => { return this.user.id !== userId ? <butto...
scottsuhy scottsuhy
3

Beginner: Having trouble understanding how to extract the data out of a result from a query.

I am new to Laravel/Eloquent and I'm having trouble understanding how to extract the data out of a result from a query. I'm calling the following query in the contro...
siewlon6093 siewlon6093
1

Call to a member function threads() on null

public function store(Request $request) { $threads = new Threads; $threads -> title = request('title'); $threads -> body = req...
camlynfx camlynfx
10

jQuery or $ is not defined even though Bootstrap's JS components seems to be working ok?

In Laravel 5.6, in layouts/app.blade.php inside <head> I have <!-- Scripts --> <script src="{{ asset('j...
Laravel
10
3204
sumanb sumanb
9

Quill Editor Integration with Laravel 5.8

Can Some one help, how to integrate quill editor (https://quilljs.com/) into laravel. Many tha...
Laravel
9
2125
EmilMoe EmilMoe
1

Target class [hash] does not exist

I had this same error last week, stupid as I am, I already forgot how I solved it. I hope someone here can help me point how, what is going wrong? It happens when a...
moctarss moctarss
10

How to properly save image path?

I am trying to save an image path on my project by doing this on my Controller: public function storeImage(Employee $employee){ dd(request()->person_i...
mcbates mcbates
1

How to use model factory as setup in multiple test files?

Almost all my tests need a season (as in sports) to be set to run properly. For example every match needs a season that is assigned to it. Right now, in nearly all t...
boyjarv boyjarv
6

post route is giving a 500 - please help?

POST https://mydomain.test/pusher/auth 500 here is my route: Route::post('/...

barryvdh/laravel-dompdf table page break problem

Hi, so I am using barryvdh/laravel-dompdf to generate invoice table, but the problem is on page break. css: .page-break { page-break-before: al...
t0berius t0berius
3

carbon create instance from days

Storing some integer values (for days) inside my database, how can I create a carbon instance from these integers as "days"? Used for further calculations....
untymage untymage
3

laravel_session cookie VS session drivers

What is different between laravel_session which is in cookie vs the session drivers like 'file' ?...
valeraefimov696 valeraefimov696
5

Validation Laravel bug?

Hello! I have simple rules and blade "title" => "required|string", "text" => "required|string", when i try send submit...
davy_yg davy_yg
3

validation

I wonder why eventhough I uploaded an word doc or extra large email. The validation error message does not appears? ProfileController.php public func...
Tithira Tithira
3

Image Validation multiple ratios

I am validating my images and i want to accept multiple ratios ( 3/2, 4/3, 16/9 ) , i have tried validating like this 'uploadImage' => 'sometimes|image|mi...
benitto_raj benitto_raj
4

how to display image from local disk such as C,E,D drive?

{ img src="{{'c://photos/messi.jfif'}}" alt="image missed"> } i try like but it shows error like cannot load local resource? anyone help me.. thank...
Laravel
4
139
jwheat jwheat
4

Override Laravel Email sending functionality

A client I'm working for has a special API based email sender service. I authenticate with a JWT, then shoot an API call to the service with the typical mail information,...
jlrdw jlrdw
12

You have ventured into 404 space

On forum, keyboard is working fine when replying, but any mouse click takes you to: You have ventured into 404 space....
Feedback
12
195
Thavarshan Thavarshan
1

Count items per day in week

Does anyone know how to group data by week like for instance, all posts created during the period of the last 7 days starting from Sunday?...
Davieboy Davieboy
3

This action is unauthorized

I have been completing the Laravel Forum tutorials and I am stuck at another section, been trying to find the problem for the last 4 hours but its not happening, everything...

Sorting a One To Many (Polymorphic) relationship

So I have been playing around with the structure of a new comment system for my blog using Polymorphic relationships. It all works fine but I am having trouble sorting the...
Create a New Discussion Button