Keep getting TokenMismatchException VerifyCsrfToken.php on line 46

Hi all, I've been working on a application for 4 days now. but since today im totally stuck! Whatever i do i keep getting: TokenMismatchException in VerifyCsr...
General
47
486

Method 'table' not found in \Illuminate\Support\Facades\DB

I have used use Illuminate\Support\Facades\DB; still its table static function is not found. I have opened DB.php in facades and there was no static function DB. Any sugges...
Laravel
24
162

API Error display

I understand how error handling is supposed to occur for regular http calls. Laravel has custom ways to handle specific error types and you can extend this by adding...

Mention a user

Hi people, I have a little problem, I followed the series on building a forum. In the part where you have to mention the name of a user after an @, is problematic....

eloquent count relation

Hello, I have 2 tables, tours and destinations. Tour belongsTo destination and destinations hasMany tours. Im doing some queries on Tour model and I want to show after the...

How to remove Vue's default Div Element

Hi. I have a problem about the vue's constant div element. Vue build all application in the div elemen which has id="app" or etc. This wraps all content in a div...
Vue
4
33

Spark - Eloquent Relationships for Teams

Hi all I am currently trying to create a simple SaaS application, where teams can create projects. I am currently stuck at the migration, because I am unsur...
Spark
2
35

check user has row

How can I check, the user has a row in this table or not...

Consume same API for both web and mobile or not?

Lets say I am building some large application ( multi-page app ) . And laravel will allow me to make an API and a website...
Laravel
9
141

Best way to handle huge insertion in laravel considering both timeout and memory issue

Currently, I am trying to insert data to the database using Laravel Queue. This is importing data from csv formatting some columns and the finally dump to the database....

Class 'Laravel\Spark\Providers\SparkServiceProvider' not found

I get this error message after fresh cloned from bitbucket. How will I fix this? FatalThrowableError in compiled.php line 7633: Class 'Laravel\Spark\Providers\SparkS...
Spark
10
183

laravel schedule:run is not working on server(via cron jobs)

Hello everyone, I am trying to run schedule run command on server via cron job. I used following command usr/local/bin/php /home/nemanu/root1/artisan schedul...

Workers concurrency

I have a parsing job that is started by custom artisan command and I runed it 3 times for concurecy with deamon workers. So I have 3 workers working at a time, but now I ca...

Filter multiple results from database in view

I currently have a user table full on info 'birthday', 'gender','state', etc... and I want to learn how to create a dropdown selections to filter the results s...

User Providers and Guards - double check data?

I am studying the implementation of the 2 interfaces mentioned in the title. In the SessionGuard you can find the following lines in the attempt function:...

Pass parameter from Laravel controller to React Component Initial State

I have a model called Ts (timesheet) and a controller with a route of example.com/ts/5 to open ts with id=5. I have a ReactJS Compoment that displays one ts. I...
Laravel
4
327

Ternery operator help

I am laravel beginer. i am not able to understand this code. <option value="1" {{ !empty($make->status)?($make->status==1)? 'selected':'':'selecte...

Specifying the server port in Envoy

As far as I can tell there's no way of specifying the SSH port to be used when writing envoy tasks. Can anyone confirm this or point me in the right direction to being able...

Returning Eloquent Data for Chartkick

According to Chartkick docs, it can read data in following formats: <pie-chart :data="{'Blueberry': 44, 'Strawberry': 23}"></pie-chart>...
Vue
1
15

Accept & save paypal credit card details from application's custom interface(Not from paypal UI)

I have a rest api for an android app , that has feature of online payments , I want a customer to enter his credit card details from android app's UI , and these details ar...
Laravel
18
132

All Laravel Versions with Documentation

Is it possible to get all laravel versions from Laravel 1.0 (With Documentation). To see how it has evolved ?...

Correct way to save changes to an eloquent relationship

This question has a few parts. I'd greatly appreciate your help with any or all of them, since all the advice I was able to dig up was incomplete. I'm looking for so...

Select and open a node that is just created (jstree)

I am using jstree to organize groups. I have ALL GROUPS (root node) and children (groups). When I create a group (I am using form) I want to load jstree and automatically o...

How do we turn event handling back on for test after ->withoutEvents?

I have a class that emits an event which ultimately sends an email. For most of the tests for that class, I don't want an email sent, so this is my setUp function:...

condition inside query builder

I need to have an condition inside an relation query builder $jobs = Job::where('disabled_job', '=', '0')->with(['positions' => function ($queryPositi...

Multiple Domains w/ Single Laravel Install

Sort of consolidating a few questions that are old, unresolved, and kind of in keeping with my own problem. Routes file: echo url()->current() .&qu...

Syncronous queue not running failed() method, or adding to failed_jobs

I can't seem to get a failed() method on a queueable email job to run, nor does anything appear on the failed_queues table populate on the fail. I...

How to build an MLM software with laravel

I have been learning laravel for like a year plus now through laracasts of course, now am been approached by a client to build an mlm software using laravel, can I really b...

Alternative to using Command system

A colleague told me that Jeffrey has changed his mind about using a command system for complicated or large processes, for example like the...

Encrypt a password in database update

Hi guys, sorry for my english. I have a problem in a Laravel project, I want to update an user's password, but when I do it, the password is not encrypted. I put here my up...

Call to a member function connection() on null

Hi everyone, I am facing a challenge that I'm not sure what to do with. I have a bunch of pages that work, but periodically I get this error: Call to...
Laravel
5
632

404 error

hi guys i am using laravel 5.7 i want to make areset link and i want to accept email addres after i accept the email the route thaat i use ives me 404 error the vie...

Gloudemans shoppingcart Quantity Update Problem.

When Update quantity properly Updated Every Row But First Row Not Updated. When Click for update first row Show this url:...

Custom service provider gives Purify errors in PHPUnit test

Hi guys, This is a weird one. I'm trying to add some extra allowable HTML elements to Steve Baumans' Purify. It takes a custom ServiceProvider, seeing as the...

VS code formatting

I am hoping someone who has used Visual Studio Code can answer this: I use netbeans 10, it formats everything great, for example after some edits, deletes I have:...
Create a New Discussion Button