Skip to content

Tag: laravel

Laravel 5.3 – Clear config cache in shared hosting

Currently I’m working on small project that require me to host my laravel app on shared hosting (please ignore the reason why I didn’t use VPS to host my laravel project) and this hosting provider disable escapeshellarg() for security reason so I can’t use php artisan config:cache to clear c…

Laravel: HTML in notification

I’m using the default notification system (Laravel 5.3) to send an email. I want to add HTML tags in message. This does not work (it displays the strong tags in plain text): I know it’s normal because text is displayed in {{ $text }} in the mail notification template. I tried to use the same syste…

Laravel Carbon Group by Month

Can anyone see what I’m doing wrong? I’m trying to output all the months but group them so they are unique. I’m getting the following back In my database I have five news articles all created_at 05/01/2017 so it’s right that I only get one response but I’m not getting the number …

Laravel Blade compileString gives me a Blank Page

I tried to create a new blade directive in my AppServiceProvider: And then call this directive in my view: @test() But it’s not work and gives me a blank page. Answer i try several things but finally i fix this by copy and paste blade directive code from BladeCompiler.php to my custom directive instead …