[Laravel] Filament, Getting started
1. Installing the panel builder Install the Filament Panel Builder by running the following commands in your Laravel project directory: This will create and register a new Laravel service provider called app/Providers/Filament/AdminPanelProvider.php 2. Creating an user You can create a new user account using the following command: 3. Creating a resource To create a resource […]
[Laravel] How to re-render math with MathJax on Livewire
When webpage contents are reloaded dynamically, it is essential to re-render math with Mathjax. I’ve been experimenting to find out the best hooks and events to re-render math seamlessly. First, dispatch the event that will be used for re-render in the rendered() hook of Livewire Component Class as below. Then, place the JavaScript below in […]
[Laravel] Initial Database Setup and Debugging
Initial Setup Database connection information is found in two files mainly. These values are created during application creation. However, it is often necessary to check and fix those values. Any sensitive values like credentials are supposed to go into /.env file. It looks like: Another file with database connection information is /config/database.php. It can have […]
[Laravel] How to build Laravel package for your look and feel with Blade Template
First, install new Laravel application to be used as testing application. We are not using DB, so It might be good enough to start new application with Herd. The folder structure after initiating the application will look like It is developed under “packages” directory. Then, it will be installed with Composer in product and the […]
[Laravel] Laravel Blade Templates – overly simplified
I am going to use Laravel Blade Templates to render H1 tag in orange. It is overly simplified Laravel Blade Templates guide line. The full documentations are available on https://laravel.com/docs/blade First of all, create any customized resources you need like css, js or image files under /public directory. I am going to create /public/waterloobae.css as […]
[Laravel] How to build Laravel application with Docker 1/2
First Setup Run following command from the directory you would like to start building Laravel application. Then, Sail script is also installed in the application directory. Sail helps to run artisan command in to application Docker containers. So, it is easier to include sail in the PATH environment variable. To make sure this is always […]
[Laravel] Starting Laravel Project with existing DB/Schema
DB Settings After creating Laravel project with Composer, you need to modify two files to set DB environment. /config/database.php defines connections with environmental variables sourced from .env file. ‘mysql1’ connection has setting for connecting to ‘mysql1’ schema. ‘mysql2’ connection has setting for connecting to ‘mysql2’ schema. Now, your Laravel project is ready to connect to […]