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…
Tag: laravel
Unable to read image from file .SVG (intervention/image)
So I’m making an image uploader where I want to make thumbnails but also support svg as well, since GD doesn’t support svg types I first tried switching to imagick in the config/image.php file but that didn’t change anything. Which I am uncertain about as it does state it supports it, am I m…
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 …
How can I format PHP files with HTML markup in Visual Studio Code?
I’m using Laravel so all the views are .blade.php files. Visual Studio Code won’t format the HTML because of the PHP extension. I removed the “blade” part of the filename, but it still isn’t formatting the files properly (via Alt+Shift+F). I also tried about five extensions, but …
Laravel 5.3 + Sentinel: BadMethodCallException in Builder.php line 2450
I’m trying to build my first Laravel application by following a few guides on the internet and I’m feeling I’m missing something obvious. Here is the code. Error BadMethodCallException in Builder….
Laravel – how to delete polymorphic relations of model with belongsTo relation?
I have 4 tables. Two of them are monomorphic and two of them are polymorphic. Monomorphic: Templates, Modules Polymorphic: Documents, Images Now, templates and modules have both documents and …
error log truncated in laravel 5.3
i have this entry in my laravel 5.3 log 2016-12-22 17:23:37] local.ERROR: GuzzleHttpExceptionClientException: Client error: POST https://api.sparkpost.com/api/v1/transmissions resulted in a …
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 …
How to pass variables into Blade using Laravel’s Mail functions?
I have this class that takes care of emails. the $massage parameter is called from the a this class, Now i want to display the message the message in the emails.notification.blade and i tried this way this is the exception that I got. anyone with a better suggestion? Answer In your controller, the variables a…