Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

ian_h's avatar

Forum - Post removal doesn't reset the REAL "last updated" time

It seems when comments (largely spam) are removed from a thread, the thread still remains as a recently updated thread, when in reality, it's not if it's had the last record removed. Would be great to see the date reset to the last comment date so that 2 year old (for example) threads don't appear in the latest updated threads. This thread for example: https://laracasts.com/dis

ian_h's avatar
ian_h's avatar Glukinho4mos agoFeedback
2
2
Last reply by Glukinho 4mos ago
cstilstra's avatar

Laravel 10: request()->cookies->all() empty on one subdomain but not others (cookies present in browser)

Hi all, I’m seeing a very odd Laravel/Symfony behavior related to cookies and subdomains, and I’m hoping someone recognizes this pattern. Setup (simplified): Laravel 10, PHP 8.3 Multiple subdomains on the same app: staging.website.us = works staging-pages.website.us = works staging-account.website.us = broken Same Apache vhost and PHP-FPM pool for all subdomains Session cookie

cstilstra's avatar
cstilstra's avatar cstilstra4mos agoLaravel
0
1
Dikanio's avatar

Artisan command on cpanel

Hi, i use jasonlewis\resource-watcher package to detect a presence of new file in storage, so everytime new file is created in storage/public i can detect it and move it to another folder, the package is working fine on localhost but i need to run it on cpanel, to start the package in localhost i simply use 'php artisan watcher' but how do i run it on cpanel, so it can work on

Dikanio's avatar
Dikanio's avatar neluttu4mos agoLaravel
6
1
Last reply by neluttu 4mos ago
bufferoverflow's avatar

Good video service for an education saas

I'm building an educational saas app where my users are going to upload videos. I don't want to host and stream them, so I'm trying to find a good service with nice API. Has anyone been in this spot before or has some recommendations? Thanks!

bufferoverflow's avatar
bufferoverflow's avatar martinbean4mos agoGeneral
9
1
Last reply by martinbean 4mos ago
lara28580's avatar

How to solve "ERR_TIMED_OUT" error?

I am trying to access my page , but I am getting the following error "ERR_TIMED_OUT". Someone can tell me how to resolve the error?

lara28580's avatar
lara28580's avatar michaelrou...4mos agoLaravel
9
8,458
Last reply by michaelrouillard 4mos ago
Ali-Hegzy's avatar

A problem in the exam submition

Hello developers, I'm currently learning PHP in the "PHP for Beginners" course. When I click the "Take Test" button below the video, I'm taken to another page. When I click "Submit Answer," I get a 403 (Forbidden) error page. When I click the "Return to Homepage" button, I'm taken back to the homepage, but the sidebar isn't working, and I

Ali-Hegzy's avatar
Ali-Hegzy's avatar JeffreyWay4mos agoFeedback
5
1
Last reply by JeffreyWay 4mos ago
Developer654079525's avatar

Markdown storage

Our cms stores raw HTML in a table. The HTML was written by us and is displayed unescaped as part of a page in multiple routes. The content itself usually contains simple tags, escaped pre code and code content and some Bootstrap styled divs and tags. Some of the divs even utilize the Bootstrap's JavaScript functionality. A markdown approach seems to be an easier option for edi

Developer654079525's avatar
Developer654079525's avatar Developer6...4mos agoLaravel
4
2
Last reply by Developer654079525 4mos ago
wim91's avatar

How can I check the uniqueness of multiple fields in one record?

Hello everyone. Here's the task. Four images are added through a form. Each image has a name that is saved in the database. When updating files, I need to delete the previously saved image, upload a new one, and overwrite its name. It's possible that the new file name will match the names of three other files. My question is, how can I check the name of the uploaded file agains

wim91's avatar
wim91's avatar martinbean4mos agoLaravel
5
1
Last reply by martinbean 4mos ago
sarmadindhar's avatar

Default adding Api Request headers

Is there any way to add Accept=application/json header with every request in API by default. Because currently in every request I have to pass Accept header manually. Is there any method in laravel that adds this header by default/automatically with every request?

sarmadindhar's avatar
sarmadindhar's avatar josep42ny4mos agoLaravel
6
1
Last reply by josep42ny 4mos ago
yumna12-coder's avatar

Localization

Route::get('/{Locale?}',function($Locale=null){ if(isset($Locale)&& in_array($Locale,config('app.available_Locales'))){ app()->setLocale($Locale); } return view('welcome'); }); how to add this for all my route without using middleware

yumna12-coder's avatar
yumna12-coder's avatar LaryAI4mos agoLaravel
1
1
Last reply by LaryAI 4mos ago
doe_doe_doe's avatar

Symfony Service Locator equivalent

Hi, I'm relativly new to Laravel and currently I'm searching, which is the best way to design my app. Let's say I have a MessageInterface and I have about 50x different implementations of this interface. And now I want to build different VoodooServices for these messages. Each message implementation could have a different VoodooService. In Symfony there would be a nice solution

doe_doe_doe's avatar
doe_doe_doe's avatar rodrigo.pe...4mos agoLaravel
3
1
Last reply by rodrigo.pedra 4mos ago
AI-Gmz's avatar

URGENT: Lesson Notes and Homework disappeared from the entire site

Hi Jeffrey and team, I think there is a critical UI bug affecting the lesson pages. Up until a few minutes ago, I could see the written theoretical material, code blocks, and homework exercises below each video. However, after refreshing the page, that entire section has completely disappeared from every episode and every series on the site. ​Now, only the 'Transcript | Comment

AI-Gmz's avatar
AI-Gmz's avatar kornsp1rac...4mos agoFeedback
4
10
Last reply by kornsp1racy 4mos ago
yumna12-coder's avatar

Laravel Translatable

Is there a Laracasts video/tutorial that demonstrates using Spatie Laravel Translatable for Eloquent models? If yes, which series or episode?

yumna12-coder's avatar
yumna12-coder's avatar LaryAI4mos agoLaravel
1
3
Last reply by LaryAI 4mos ago
Mick79's avatar

Any “famous” sites built with Laravel?

Are there any “famous” websites built in laravel that someone not in the Laravel world might know? Like any major retailers? Any major platforms or organisations? Thanks.

Mick79's avatar
Mick79's avatar mgolshan4mos agoLaravel
51
132
Last reply by mgolshan 4mos ago
laracoft's avatar

Rate limiting mailables

use Illuminate\Cache\RateLimiter; use Illuminate\Support\Facades\RateLimiter as RateLimiterFacade; // In AppServiceProvider boot method: RateLimiterFacade::for('mailing-list', function (object $job) { return $job->user->rateLimit(5)->perMinute(); // A - defined first time // Or a global limit: // return Limit::perMinute(5); }); class SendUserEmail impleme

laracoft's avatar
laracoft's avatar laracoft4mos agoLaravel
8
18
Last reply by laracoft 4mos ago
vincent15000's avatar

VSCode shortcuts

Hello, For some months, I have Ctrl + Alt + i to import namespaces and classes. From today, I don't know why, the AI Agent panel opens with Ctrl + Alt + i instead of importing the classes. How can I change this ? I already changed the shortcuts view from the File > Preferences menu, but it doesn't work. Do you have any other advice to deactivate the shortcut for the Agent AI

vincent15000's avatar
vincent15000's avatar quintinmor...4mos agoGeneral
2
2
Last reply by quintinmorrow 4mos ago
silveira's avatar

Error After update to livewire 4 Livewire\Exceptions\RootTagMissingFromViewException vendor/livewire/livewire/src/Drawer/Utils.php:20

after i update my project to livewire 4 i am getting this error when i am trying run some action in my component. I am using filament v5 table and his action here is my code //... existing code ->recordActions([ Action::make('delete') ->label('Excluir') ->icon('heroicon-o-trash') -&

silveira's avatar
silveira's avatar DoubleClic...4mos agoLivewire
2
3
Last reply by DoubleClickDesignLtd 4mos ago
adamnet's avatar

Retrieve the Last Inserted ID

To get the last inserted id in a table (users) after saving the new record the code is: $lastInsertedId = $user->id; Since we talk about an internet application with many users, the above code will return the last record id for the user who registered or will return a global value for the users table?

adamnet's avatar
adamnet's avatar jlrdw4mos agoLaravel
15
82
Last reply by jlrdw 4mos ago
sean2025's avatar

New to Laravel - a quick question on workflow

I've started to look at some of the excellent courses here on creating Laravel applications. I know that course instructors may take an approach that differs in workflow to how an experienced developer would approach the same task on a project. Understandably, instructors want to isolate different parts for clarity, rather than do all together... like explaining Tailwind, Alpin

sean2025's avatar
sean2025's avatar DoubleClic...4mos agoLaravel
8
1
Last reply by DoubleClickDesignLtd 4mos ago
yonka's avatar

sell items as a set of items sometimes or each item as pcs

I build a database, after finished and start working, there is a problem arise from the seller, the seller is selling items, so the seller required to sell an items as either a set sometimes or as individual item. A set contains specific items with specific Quantities and price that are known for instance: a set has a name like AYZ and it has to have quantities like 1,2,..etc s

yonka's avatar
yonka's avatar jlrdw4mos agoLaravel
2
1
Last reply by jlrdw 4mos ago
yonka's avatar

sell items as a set of items ?

I build a database, after finished and start working, there is a problem arise from the seller, the seller is selling items, so the seller required to sell an items as a set. A set contains specific items with specific Quantities that are known for instance: a set has a name like AYZ and it has to have quantities like 1,2,..etc so if the buyer wants to buy AYZ 2sets, the buyer

yonka's avatar
yonka's avatar LaryAI4mos agoLaravel
1
1
Last reply by LaryAI 4mos ago
DevIP98's avatar

Submenu Laravel Starter Kit

how can I add a submenu in the Laravel Starter Kit template of laravel 12? AppSidebar.vue const mainNavItems: NavItem[] = [ { title: 'Dashboard', href: '/dashboard', icon: LayoutGrid, }, { title: 'Usuarios', href: route('users.index'), icon: Users, }, ];

DevIP98's avatar
DevIP98's avatar PatrickCan...4mos agoVue
3
1
Last reply by PatrickCaneloDigital 4mos ago
yonka's avatar

How to sell items as a set of items with specific name in Laravel

I build a database, after finished and start working, there is a problem arise from the seller, the seller is selling items, so the seller required to sell an items as a set. A set contains specific items with specific Quantities that are known for instance: a set has a name like AYZ and it has to have quantities like 1,2,..etc so if the buyer wants to buy AYZ 2sets, the buyer

yonka's avatar
yonka's avatar yonka4mos agoLaravel
2
1
Last reply by yonka 4mos ago
Chron's avatar

Is there a way to use web worker that is not in public?

I'm using Laravel v12, Vue3, inertiajs, Vite, Sail. I tried importing; import myWorker from "@/workers/worker?worker"; const testingFunc = () => { const worker = new myWorker(); } Where @ is resources/js/ but Firefox spits this message out: Security Error: Content at http://localhost/testing-worker may not load data from http://[::1]:5174/resources/js/workers/wo

Chron's avatar
Chron's avatar Chron4mos agoVue
0
1
minaremonshaker's avatar

Spatie Permissions + Laravel Policies: Best Practice for Permission/Role Controllers?

I'm building an admin panel using Spatie Laravel Permission and I'm confused about the "right way" to handle authorization in Permission/Role controllers. Option A (Direct Spatie check): if (!auth()->user()->hasPermissionTo('view_any_permission')) { abort(403); } Option B (Laravel Policy): Gate::authorize('viewAny', Permission::class); // Policy just wraps:

minaremonshaker's avatar
minaremonshaker's avatar Snapey4mos agoLaravel
5
5
Last reply by Snapey 4mos ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.