esaeng esaeng
5

I'm getting this, syntax error, unexpected 'use' (T_USE), expecting '{' , on line 3

<?php namespace App\Http\Controllers\ImageController use App\Http\Controllers\Controller; use App\Image; use App\Traits\ImageUpload; use Illuminate\Http\Request;...
PWParsons PWParsons
4

How to test a view composer

I'm new to testing so please forgive me if I am missing something obvious. I'm trying to test the following view composer: namespace App\Http\View\Com...
Testing
4
348
chris-lw chris-lw
6

PHPStorm + Blade Components

What is the recommended way to stop PHPStorm complaining about my custom blade components? I can click "Add x-button to custom HTML tags" but this has to b...
Laravel
6
150
EliasSoares EliasSoares
6

How to catch QueryException?

I'm trying to do this: try { $model_class::destroy($id); } catch ( Illuminate\Database\QueryException $e) { var_dump($e->errorInfo); }...
General
6
4644
CarlEOgden CarlEOgden
4

Select boxes - is it possible for text search by default

Hi Guys Back again to ask dumb questions! I've got a drop down box I am using for a list of solicitor names, once we populate with many solicitors scrolling u...
Spiral Spiral
1

How do I upload images to my heroku app in laravel

use heroku run php artisan storage:link after deploy but not showing images I am following a tutorial on deploying a Rails app to Heroku. It is using a...
lukapiglu lukapiglu
1

Merge array (POST)

Hi. I have post request with x, y coordinates gps[x][] = 1.0 gps[y][] = 2.0 gps[x][] = 3.0 gps[y][] = 4.0 gps[x][] = 5.0 gps[y][] = 6.0...
billok-lab billok-lab
4

Login as user from admin panel

Hello guys, How can I login as user from admin panel in laravel? any help would be great :)...

How to read replies when using Mailgun to send mails?

Hi, I have been using Mailtrap for testing and everything seems to work fine. My plan is to use Mailgun to send mails (for production), but not sure how to handle re...

Authorization to update a few attributes only

Hello, I'm looking for a way to set authorization to update only a selection on field. For example, a thread can't be updated by a user. I tried to create a n...
Haswell Haswell
0

File Upload Problem Vue.js

Hello , sorry for my english. I'm trying to upload multiple image on a form and other string element. I did it like this : <div v-for="...
Vue
0
23
tylernathanreed tylernathanreed
3

Make a Job wait on several other Jobs

Is there a "best practice" for having a job in Laravel wait on several other jobs? I'm aware of the "job chaining" functionality in Laravel, but it does...
Laravel
3
564
kingshark kingshark
8

route problem

here is a simple example: Route::get('/post/{id}', '[email protected]'); // ... Route::get('/post/new', '[email protected]');...
Laravel
8
340
pefremidis pefremidis
1

How can I import a json file inside a vue component

Hello, I need to import a JSON file inside a Vue component. My problem is that the JSON's file name is dynamic and stored inside a variable. Is there a way to do thi...
Vue
1
280
hermesalvesbr hermesalvesbr
1

Allow creating a new option in Autocomplete

How can i create a autocomplete field with option to create a new data?...
Nova
1
281

Need help for hasManyThrough relation

Hello, I have these four models : Supplier id Order id supplier_id OrderProduct (pivot) order_id product_id Product id...
Bvanhaastrecht Bvanhaastrecht
1

Worker crashes when timeout is hit (windows)

Hello, We run laravel 7 app's on a Windows 2016 IIS box. We have noumerous jobs and 4 queue's with various priority's. All DB based. Most of our jobs finish w...
Laravel
1
273
rajeshupadhayaya rajeshupadhayaya
4

CORS issue in production server

Hi, I have created laravel API and configured CORS and it works fine in development server. But when i deployed that application in shared hosting. It starts giving CORS is...
General
4
319
jgravois jgravois
6

I seem unable to grasp Testing and I am frustrated

While I understand the importance and value of TDD, I cannot seem to develop a workflow that is conducive to efficacy because I spend hours googling assertions and still ca...
Testing
6
327
riwash riwash
5

Hey error in laravel livewire script url link in wrong

Hey error in laravel livewire script url link in wrong here is error in script url source is --but we need to work with -- How to fixed this ??...
Laravel
5
307
nicwek nicwek
1

I need help using Kenyan payment gateway

I am trying to integrate a Kenyan Payment Gateway, Tingg, to my laravel project but i am having some challenges. Being a newbie to Laravel and...
Laravel
1
303
PetroGromovo PetroGromovo
0

Mapping with elasticquent got Root mapping definition has unsupported parameters error

Hello, In Laravel 7.12.0 app I added "elasticquent/elasticquent": "dev-master" plugin and I try to implement sample data example from...
sasikala sasikala
14

While installing laravel composer

Hello, When i tried to install laravel composer, while using the command "laravel new new_laravel_app" i got error like this " The Zip PHP extension is not i...
Laravel
14
389
dxladner dxladner
10

AWS HTTP error: cURL error 60: SSL certificate problem

Typical cURL issue all around Google Searches. I have tried downloading the new certificate and placing it in many different folders (such as php\php7.2.1\extras\ssl) and...
Laravel
10
2574
tarang19 tarang19
1

Laravel 7 Passort guzzlehttp

I want to try to get client token using guzzlehttp with postman guzzlehttp hangs and not work I am using window and xampp server not able to find out what is the iss...
Laravel
1
288
theUnforgiven theUnforgiven
45

Signature Pad

I'm using this package - https://github.com/szimek/signature_pad...
General
45
2312
brayniverse brayniverse
1303

Where are you all from?

I'm wondering how far Laravel's reach extends to. I hail from London myself....
General
1303
21895
nikankad nikankad
3

how do i open a new tab with my pdf in my table

i have a table with blobs of pdf, i want to click a button and when i click it, i want it to go to a page with the pdf...
Laravel
3
627
siewlon6093 siewlon6093
2

jquery undefined

jquery.validate.min.js:4 Uncaught ReferenceError: jQuery is not defined at jquery.validate.min.js:4 at jquery.validate.min.js:4 (anonymous) @ jquery.validat...
sivaprasad sivaprasad
9

How to access php artisan commands in phpstorm

Any possibility of accessing php artisan commands in phpstorm from command line tool ? In Homestead environment, php artisan commands are executing too slow hence i...
General
9
1390
mehrad mehrad
2

What Is The Correct Way to Write A Chat Application with Laravel ? (What I Understood Sofar and My Dilemmas)

Hello everyone. Hope you all doing well. I have to write a chat application that enables users to have a real-time private conversation or have public group conversa...
Laravel
2
324
nufolder nufolder
0

laravel dompdf return 404 not found

so i am using nginx server with digital ocean for my website with laravel. i use laravel dompdf for exporting views to pdf files. this is my blade...
humakaka humakaka
12

Render template from blade template in database

Hi guys, I'm planning to develop a multi tenancy application which allows users to modify their own templates. To do this, I will store users template in database a...
General
12
4437
kshanadi kshanadi
1

$touches for hasOne and hasMany

Is there a way to touch Children Timestamps? I only see $touches for belongsTo and belongsToMany in the document. How about for hasOne or hasMany?...

Accessing Resource "toArray" values in Blade view

Hi all, Hopefully a silly question. Here's my controller: public function index() { $user = auth()->user(); $allocations =...
Create a New Discussion Button