incridible incridible
3

Route [products.all] not defined. (\resources\views\product\cart.blade.php)

it was working fine but when i add delete cart product functionality then it started showing this error Route [products.all] not defined. (resources\views\product\cart.blad...
Fijvect Fijvect
3

Model manipulation before every call

Hello! I am hoping for advice on how to best approach my problem. Strategies or tips. I have a website with repeating events & classes. They all repeat using iCa...
Tips
3
1163
Fijvect Fijvect
1

Horizon missing broadcast queue?

Hello! I'm reaching out for help after 2 days of trying to figure this out and googling the hell out of it :( I'm trying to implement a very standard sort of messagi...
aisalen aisalen
2

Advance Query Builder Where clause with given parameter

Hi All, I am having the problem on how to create an equivalent Laravel Query with the intention of having the data generated by below: SELECT EmpID, CASE W...
Ahmed-Hussain Ahmed-Hussain
3

How To add Popup Modal into index

hello , if i need print data from HasMany to popup Modal how i can do it example i have Posts and Posts HasMany Comments i need in posts index Comments Count and when cl...
Nova
3
1089
dmitry.g.ivanov dmitry.g.ivanov
10

Laravel Forge + Redis

How does Laravel Forge use Redis? I've found redis-server and redis-tools installed via apt:...
Forge
10
407
Griehle Griehle
6

Sync does not copy all

I am trying to duplicate a already existing ... thing. It copies everything into the database using sync() except ONE value which is ONE column in a database. Type. The pro...
mediax mediax
5

Checkbox update in controller file?

I'm sorry for this question, but I'm very confused, I wan to update my checkbox value in database like published or not published with a boolean value. In controller...
Laravel
5
225
chrisgrim chrisgrim
3

Cleaner way to call where() without using a ton if() statements

Hi, I am using elastic search for my site and I am trying to clean up my search method. I have added all the filters I will be using to one method: $events =...
minjon minjon
6

How to remove a query string from an url?

I have the following url: request()->fullUrlWithQuery(['status'=>'published', 'category'=>'sport']) // '/users/1/articles?status=published&categ...
chrisgrim chrisgrim
11

"numeric value expected"

Hi, If I run the following method I get an error saying numeric value expected public function searchLocation(Request $request) { $radiusRes...
Laravel
11
100
irankhosravi irankhosravi
15

Creating default object from empty value

How to change mobile number? public function updatePhoneNumber(MobileRequest $request) { $oldPhone = Session::get('mobile'); $newPhone = $request->...
Laravel
15
94
KingsleyO KingsleyO
7

Using relationship column in a query

I have my category list coming from this relationship public $belongsToMany = [ 'catbuy' => [ 'Corymillz\Adverts\Models\Cat', 'tab...
trevorpan trevorpan
18

How do you instantiate variables in an event based markdown mail?

Hi, I've been banging up against a wall. When reviewing this section of the docs:...
Feedback
18
976
Halim Halim
5

Laravel returns blank page for a method which does not exist

Hello Laracasts, I did a fresh install for Laravel 6, I created a controller with artisan make:controller and I am using resource method at my routes.php, here is my...
aleksov aleksov
5

Create middleware to auth admin users

I'm new to Laravel but I like it very much... I create simple code that check is user admin or not: public function index() { $checkAuth = \Auth::...
General
5
2090
gvstavnev gvstavnev
3

Eager Loading on single Eloquent object

Dear Laravellonis, Im trying to return a single object I just saved to the DB and eager load the tags relation to it. My code is the following:...
royo1987 royo1987
2

updateOrCreate Error

Hi, I'm using Laravel 5.7 I have a list of checkboxes each of them will become an entry to the table, by the combination of user_id and pokemon_id. The idea is that I...
Gbever Gbever
3

Dynamic Routing with Slugs

I am creating a directory that lists professionals with SEO friendly URLs. An example would look something like this: /professionals/state-name-slug/city-nam...

Trying to change model Id name so calls the right column

I'm getting this error SQLSTATE[42S22]: Column not found: 1054 Unknown column 'bids.auction_id' in 'where clause' (SQL: select * from bids where b...
Gabotronix Gabotronix
1

get url query string value with javascript

Hi everybody, I have a laravel-vue app where after a vue component is mounted I want to chek if the url has the a given query string parameter and its value, for example g...
nicklaw5 nicklaw5
6

jQuery and laravel-mix - Why you no work??? (ノಠ益ಠ)ノ彡┻━┻

I have been using Gulp for asset builds for the past few years and have decided to give webpack/laravel-mix a go on a new project. Below lists the various techniques I have...
vikas_developer vikas_developer
16

jQuery stop checkbox checked if value is empty

When checkbox is clicked and value is empty it is returning message which is working fine. but when I increase the value then it again giving me the same message. The retur...
vikas_developer vikas_developer
20

How to Print all selected items by logged in User

I have three tables : User => [ id, email, password, timestamps ] extra_orders => [ id, user_id, order_id, quantity, status, timestamps ] orders => [id, ite...
Laravel
20
113
mykelcodex mykelcodex
12

Adding up price per week with transactions

I have this $weekly_price = Transaction::where('user_id',$id)->orderBy('created_at','desc')->get()->groupBy(function($date) {...
Laravel
12
84
laaassseeeeee laaassseeeeee
2

What is the -f option in the forge deployment script?

What does the-f option in the first line on the Forge deployment script mean? if [ -f artisan ] then php artisan migrate --force fi...
Forge
2
35
davy_yg davy_yg
3

Cannot create a new slide

PageController.php public function store_home_slides(Request $request) { $this->validate($request, [ 'title' => 'required',...
OneSeventeen OneSeventeen
3

Public Site based on external API - direct or sync with local DB?

At work we have a system that has a decent API and even has a Laravel package maintained by a community member. I've used it to make a few public facing tools like a check...
Prabodhana Prabodhana
3

get details using foreignkey using another table foreginkey

I have three tables in my database tbl_universities [id, code, name, country] tbl_programs [id, tbl_university_id, program], tbl_batches [id,...
richbreton richbreton
2

Job success

I know how to get info when a job is failed but is there an event or something on job success? how would I know a queued job was successful at the moment it succeeded?...
Gabotronix Gabotronix
2

Array to string conversion error when running laravel seeders

I'm getting the error below when running seeders for my appointments table: ErrorException : Array to string conversion at C:\xampp\htdocs\daisyspet\ve...
General
2
117
Gabotronix Gabotronix
1

Adding v-model to non-input custom component in Vue?

Hi everybody, I created a custom calendar component and I was wondering how I can send value upwards, I thought about using v-model but all the posts I saw about it use inp...
Gabotronix Gabotronix
1

Applying css properties to multiple children on hover

Hi everybody, I want to apply different properties to a element on hover, all elements are children of the class I apply hover but it's not working for some reason......
Gabotronix Gabotronix
1

Laravel for backend/API for nativescript-vue app?

Hi everybody, I have been reading a lot about nativescript-vue recently for developing native apps on mobile while using vue's single file components and familiar syntax an...
General
1
116
Gabotronix Gabotronix
1

Vue v-visible directive help

Hi everybody, I want to create a custom directive similar to v-show and v-if but it sets the visibility of the element to hidden instead, how can I evaluate id the expressi...
Create a New Discussion Button