kuns25 kuns25
10

Laravel Mail Working locally but not on server

Hii I have created a simple contact form to send mail on website owner email id , everything is working fine on my localserver im getting the mail , b...
Laravel
10
175
Dally Dally
2

How to use conditional WHERE in raw queries like in eloquent

This is more of a theoretical question. How can you use conditions in a raw laravel query like you do when using eloquent? With simple queries this is not a problem as you...
rgillera rgillera
0

Is it possible to destroy the current token in laravel passport and regenerate a new one?

Is it possible to destroy the current token in laravel passport and regenerate a new one? For example, the user register on the application then after he sign in, th...
jay_gorio jay_gorio
15

Flatten laravel nested relationship (parent to descendants)

I have a parent children relationship on my model. What I want is to flatten all those collection including all those descendants of parent. [ { 'na...
Laravel
15
184
mahfuzhur mahfuzhur
3

passing link as parameter using get method

how can I pass link as a parameter using get method like www.something.com/https://laracast.com...
Mahaveer Mahaveer
4

Vue.js vs Angular:

Vue.js vs Angular: Which best JavaScript framework to choose?...
farshadf farshadf
4

how to implement Repository Pattern In Laravel

Although there Are some Tutorials on medium and some other sites about the Repository pattern for laravel i read in some sites that repository pattern will duplicate the OR...
finchy70 finchy70
5

Vue Select: How do I mark an option as selected dependant on id?

I pass the current id of an object via props (id_check) and loop through an array of objects to populate a select dropdown. I cant pre select the object with the same id a...
Vue
5
92
Jack14 Jack14
0

How to clear sub domain website 404 urls

I m worked this subdomain website, how to solved and get improved positions on SERP....
hassanshahzadaheer hassanshahzadaheer
5

I got a 403 Forbidden with the other user

Hi! dear my gate function not working it does not show me the other users projects as I am a superuser. my code of AuthServiceProvider class A...
pramanadiputra pramanadiputra
4

Laravel Authorization (Policy) to check Himself

How do we make Laravel Policy to be able to check himself? Let say Logged User wants to update his own profile, thus we check his ID with the following ID of his pro...
rsferreira11 rsferreira11
11

Is there a way to list all relationships of a model?

For example if I have Model Post - belongsTo an User - hasMany Posts Can I use any method to list values? Example: array [ 'belongsTo' => ['User'], 'hasMan...
Eloquent
11
2384
Lars-Janssen Lars-Janssen
7

Laravel testing registration

Hi, I've got this test: /** @test */ public function a_user_can_register() { $user = make(User::class, [...
Laravel
7
888
pedroborges pedroborges
152

Route annotation in Laravel 5

Laravel 5 now includes route annotation. Which means now you can have a controller like this: <?php namespace App\Http\Controllers; use Illu...
General
152
5063
Grelav Grelav
5

sparkpost Error : Unable to find the socket transport "starttsl"

Am trying to send emails using sparkpost but am getting the following error: Connection could not be established with host smtp.sparkpostmail.com [Unable to...
Laravel
5
616
MattB MattB
1

updating table column based on paypal package return

Currently, I'm using the Paypal package from srmklive which almost entirely working except I would like it to update a specific column in my database when it returns with t...
MarlonV MarlonV
3

Call model from associate table

Goodmorning all, question. I want to know if the total payment of a user. It's already working in the payment model. How do i use/call it in my check-in controller?...
Lars-Janssen Lars-Janssen
1

Laravel handling FormData NULL

Hi, In my Vue.js app I send formData to my Laravel app where I store the data. The problem is that the formdata is always converted to a string....
rob_utopano rob_utopano
6

Create model with json field with API

Hey guys, I have a model wich has a json field inside the migration and I´ve build a crud-controller for the api. Now I want to create a new model via the ap...
Laravel
6
106
thebigk thebigk
6

GroupBy and Chunk - How do I go about it?

I've an intermediate table that maintains the performances of the students in the tests. The table structure is as follows - user_id | test_id | question_id...
farshadf farshadf
2

How To seperate Requests from controller for making code cleaner

hi , in some cases in my controller i have to recive like 12 params from my client side and i have to like below for each of variables : $something =...
meriki meriki
31

Unable to do php artisan migrate

Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations and tab...
rahul95 rahul95
5

Making my class instance persistent over next request

Hello, I'm currently working on an app where I want the current instance of one of my class/controller to be available over the next request. The actual scenario is,...
Laravel
5
178
taciskf taciskf
1

Website speed issue

The speed of my website https://www.tacis.edu.au/ is pretty slow, how to speed up it? And...
lukegalea16 lukegalea16
14

Call controller function from another controller

Knowing that calling a controller function from another function is not good practice for Laravel, I tried adding a service which can be used to call another function from...
Laravel
14
194
thirdwunder thirdwunder
6

Valet Error Log

I was using valet for a while and I used to have the ability to see the error/access logs using "valet logs" or "valet server-logs" but I got a new mach...
Laravel
6
3221
tundeogunde tundeogunde
3

How do I send email to multiple recipients from a single email form?

I am using Laravel 5.4. I have a contact form displayed in a Bootstrap Modal. Using JavaScript, the email recipients input box is populated and separated with commas. When...
Laravel
3
3891
phylaxis phylaxis
6

Strange ''Unexpected character in input: " error in Homestead on macOS Mojave

Unfortunately there is not a "Homestead" channels so hopefully this is the right place for this. I'm posting this for any others who might be upgrading to...
Laravel
6
333
wyatt44 wyatt44
5

Testing Registration

Hello Everyone! I am writing a test to check that invalid data posted to the register endpoint fails validation. I am trying to assert that the response is a redirec...
Testing
5
122
raviawasti raviawasti
5

How to show count of all subject with slug from post table?

I have two table one posts and second subject posts table : id, subject_id, post_name , etc subject table :id, subject_name, slug etc Subject table co...
hakhsin hakhsin
1

Isolating every subdomain

Hi, I have multi subdomain on my project. I want to in every subdomain only its routes get run. So, I registered: Route::fallback(...
makapaka makapaka
0

Question regarding codeception test data with laravel

So i landed in a project that has a laravel 5 API with codeception used for testing. The api.suite config file loads data that it uses to tests via Db...
mkrell mkrell
2

Laravel Passport: 401 Unauthenticated, but encryption keys are the same

Hello. I have weird problem with Passport authentication deploying my application to a new site, in spite of the fact that I haven't had a problem with this before....
Laravel
2
199
movepixels movepixels
1

You cannot serialize or unserialize PDO instances

I have no idea why I am getting this error all of a sudden. I could never understand the jumble of lines in the error page. There are 50 files in the trace but no idea what...
Eeetm Eeetm
6

Trying to get foraign key records where every connected records are deactive ( Laravel elequent query )

i have 2 tables Categorys ( id, name ) Sub_categories ( id, key, value, category_id ) im trying to get all Categorys w...
Laravel
6
112
Create a New Discussion Button