Scheduled Artisan task not executing properly

Hi All, I am building a web app which downloads m3u8 files. The m3u8 files should be concatenated into a mp4 file. This works all well and fine. Unfortunately a HLS...

require_if other field contains some value

Hello, I'm using Request to validate input, I want to make field required whether another field contains some value or not Im doing like this...

connect website to other database server

hi all i have server A that contain database. server B that contain website. i want to connect B to database in A. how to do that?...

What do I put in devDependencies in package.json

In laravel 5.5 looking in my package.json devDependencies it looks like this: "devDependencies": { "axios": "^0.17",...

Very weird behavior on deleting a model

Hey guys, so originally in my User model, in the protected static function bot() I have: static::deleting(function ($user) { if(!empty($user->...

Sort by default on name ASC using Kyslik\ColumnSortable\Sortable

Is there a quick way to sort by ASC? View Table: <!-- Table of contacts --> <div class="container"> <div class=&q...

How to loop through multiple result sets from stored procedure in Laravel?

Im slightly going out of my mind trying to get 3 result sets from a stored procedure (SP) in SQL server 2012. EXAMPLE...

schedule:run not calling artisan command

I have a task scheduled to run an artisan command, and for some reason schedule:run is not working properly. Here is my schedule() function...
Laravel
42
1068

Bootstrap Navbar-changing logo on scroll

I have somehow managed to change the logo (img src) on scroll with JS ofcourse. Now I am stuck, how can i add transition while the logos are changing ('src'). Here i...

PHP Query

Hello, This is PHP. Help me understand this code: if($selectDB == true){ $query = "INSERT INTO recruitment (ID, nama, jen...

Developing an application with laravel

Hello everyone, I'm working on a project I'd like to know how to recover the text content on an image with laravel thank you in advance...

Access env variable inside js file

I need to retrieve an env variable inside a js.file. I have prefixed it with MIX_, so that it looks like MIX_MY_VAR=1234. The js file is located public/js, and all js files...

Keep refreshing my page so that it can fetch some dynamic inputs in Firefox

I am populating some data to a form dynamically using Jquery. The data gets filled well in Chrome and Internet Explorer. The problem is that on Firefox I have to keep refr...

Fresh Project weights too much?!

My fresh installation of Laravel weights 33.3 mb. When I run npm install, npm run devit increases to 244.2 mb is that no...

Issue getting a new token after expiry time lapses in token-based authentication in Laravel

Am Working on a Laravel application whereby I am performing authentication to an API that requires token to be passed during login and subsequent requests must be passed us...

Is it possible to install Doctrine on laravel 5.7?

I got an error trying to install doctrine on laravel 5.7, in docs it is info only till 5.4.*. Does that means that i can use doctrine only with maximum of 5.4 version?...

Pricing table Many-to- Many relationship

Hi there; i'm trying to build an "advanced" pricing table like so...

Refactoring

https://laracasts.com/series/laravel-from-scratch-201...
Tips
4
37

Paginating an array collection in Laravel

Am working on a Laravel application whereby am hitting an API to fetch some data. I get a collection of JSON objects form the API whereby I convert to aPHP arrays. Now, fro...

Boolean Field properties

Hi everybody! Can anyone tell me if it's possible to add extra properties to Boolean Nova Fields? For example, when creating a resource, I need this field to be sele...
Nova
1
18
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels