FaiChan FaiChan
1

How to add Variable into Mailable's build() function?

My email is sending by Mailable (Laravel 5.5). how to can add the variable into the public function build()? I like to customize the subject name with the var...
mousumi_mou mousumi_mou
2

Fake data generator using facker

For the first time I tried to generate fake data using facker. But while I wrote artisan command db:seed , there showed an error. I can't find out the problem. Can anyone h...
eine91 eine91
0

Queued notification status

I have notification which is queueable for sending an email to the user. What I want to do is to update email triggered status in my database. So basically be...
devk devk
4

Different output files with different configs

What's the best way to compile 2 JS files that require different configs? Namely, my server config requires some additional config options from my regular frontend config....
Mix
4
53
daniel21gt daniel21gt
3

problems with excel function. larvel 5.5

How about, I have an excel function, which when sending any filter like for example, result1 or result2, this generates an excel with one of those two variables, this works...
adhik13th adhik13th
15

Laravel saved file to wrong directory

I have a function to upload file . on Localhost its not having error . but after i deploy on shared hosting , its have problem . if localhost ,im not moving some folder , b...
Laravel
15
180
r_duong89 r_duong89
7

Stark Contrast between Chrome vs. Chrome Incognito for development

So I'm using both Chrome and Chrome incognito for following allow the "Let's Build A Forum with Laravel and TDD" tutorial. My problem is that I with regula...
Laravel
7
120
Jaikangam Jaikangam
3

Laravel Voyager Admin package Error

hi i am getting error on this package, I have already made change on AppServiceProvider.php...
alainbelez alainbelez
0

ConvertEmptyStringsToNull not triggering

i'm using api routes and for some reason ConvertEmptyStringsToNull doesn't trigger. checked the code and it should transform '' strings to null. b...
SNaRe SNaRe
1

Telescope Subdomain Requests

Hi, I have successfully installed telescope. It records requests to my main domain(ex: www.mydomain.com) but doesnt record requests to my subdomains (ex: sudomain.mydomain....
konrms konrms
9

Help with csv file uploading...

Hello guys. I'm trying to upload a .csv file to my (oracle) database. In fact the end user should insert this file along with other data. After submitting, a pdf file shoul...
akoni akoni
2

Problem with Laravel saving with Multiple Foreign Keys

===================================== Workflow public function workflowdetails() { return $this->hasMany('App\WorkflowDetails'); } ==...
gathuku gathuku
4

Laravel Form Builder

I was debugging an error related with laravel form Builder. Here's the error stack [2019-05-19 11:11:06] local.ERROR: ErrorException: Illegal string offset '...
DougE DougE
4

500 (Internal Server Error) on post request (Stripe)

I am following the Stripe series with Laravel 5.4 and it's become apparent to me that a lot has changed in a short amount of time since the series was made. I am on episode...
Vue
4
338
mhdmirzaie mhdmirzaie
1

How to unwrap json data

Hi everyone, I have created an api using resource file. the json data is wrapped into data object like below: I add below code in AppServiceProvider to unwrap the da...
MarlonV MarlonV
6

check-in / check-out system

Hello Guys, I need some advice. I have a table with children. This contains a column with barcode. Think of it as an check-in checkout system, where only the barcod...

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...
kaygero kaygero
4

Laravel + Vue.js: [Vue warn]: Failed to mount component: template or render function not defined.

Hi, I am trying to use vue-router links to load my home and about.vue but I get this error: app.js:64725 [Vue warn]: Failed to mount component: template or r...
Vue
4
66
MarlonV MarlonV
3

Common question

Morning Guys, If a have a script like this, is the controller the right place to put it in? Or do i need to place it in the model, and call it in the controller. An...
Laravel
3
129
MarlonV MarlonV
1

Guidance

Hey guys, I'am stuck with my app setup. I'am building a app for a non-profit organisation. In a nutshell: Users add their kids, and kids can go to a event....
PaulCatalin97 PaulCatalin97
2

laravel 5.8 delete/destroy id from database

how can be done? i can`t find any solution on documentation. this is the controller public function destroy ($id) { Joburi::destroy($id);...
jlmmns jlmmns
3

How to eager load a relation on Auth::user()?

How can you correctly eager load a relation on Auth::user()? Auth::user()->with('teams')->get()...
Laravel
3
1337
caption caption
2

Cannot add foreign key on laravel tables

here is my code under patient tables: $table->integer('user_id')->unsigned(); $table->foreign('user_id')->references('id')->on('users')->onDelete('...
dtirer dtirer
82

Which OS are most Laravel Developers Using?

I was curious which OS most Laravel Developers are using for development and why? OSX? Windows? A Linux distro? We know that Jeffrey and Taylor use Macs....
General
82
1820

Multiple domains in one project with single DB

We do Sass project which should be able to connect customer domains. Now the biggest problem is how using queues to send notifications to slack channels and mail which depe...
Dev0ps Dev0ps
3

how to compress image size in laravel

some time user upload jpg, png, jpeg so in this situation which is the best laravel image compressor and how to use it....
Laravel
3
634
nhayder nhayder
9

Deploying laravel app on cpanel shared account

after setting up laravel app on a shared cpanel account, The good new is that its working as it should. but when i try to execute any artisan command like i'm gettin...
Laravel
9
106
irankhosravi irankhosravi
24

How to update and edit a image in laravel 5.8

I have a table called Services, now this table has the following - -id -title -body -image -slug -timestamps And in administrator, services page I created for...
Laravel
24
152
zfdeveloper zfdeveloper
8

Redirect back with error not setting the key

I was wondering, how can I set the error message and the key so I can get in the blade using @error directive? I'm trying this way:...
sunservices sunservices
1

Best practice: when to use a repository.

Hi, In my project, I will be using two remote APIs to consume data. Both effectively return the same data in vastly disparate formats, with small functional differe...
zfdeveloper zfdeveloper
8

User has coins and can subscribe to plans

I have a system where an user can have coins and exchange those coins for plans. The website has 4 different plans: basic, intermediante, advanced, professional, he can exc...
daniel21gt daniel21gt
1

Problems with excel hosting reports. laravel 5.5

How about, I have scheduled these reports that work very well locally, this is, in that when I do a query for a different filter, I click on the button to download e...
zfdeveloper zfdeveloper
1

know if the limit has reached for plan

I have a system with User, City, Subscription and Plan. The Subscription is the glue (pivot) between the...
Create a New Discussion Button