Skip to content

Instantly share code, notes, and snippets.

View illusi03's full-sized avatar
:octocat:
What's happening ?

Bambang Mohammad Azhari illusi03

:octocat:
What's happening ?
View GitHub Profile
@ahmadshobirin
ahmadshobirin / set locale and timezone indonesia in laravel.md
Last active July 27, 2024 08:17
set locale and timezone indonesia in laravel

Open File App\Providers\AppServiceProvider

Change method boot

use Carbon\Carbon;


public function boot()
{
	config(['app.locale' => 'id']);
@vades
vades / laravel-auto-refresh.md
Last active June 20, 2024 13:29
Auto refresh after changes with Laravel Mix

Laravel auto refresh after changes

To achieve this you can use Laravel Mix

  1. Ensure that Node.js and NPM are installed: run node -v and npm -v.
  2. Install Laravel Mix npm install.
  3. Open webpack.mix.js and add mix.browserSync('127.0.0.1:8000');.
  4. Run php artisan serve.
  5. And the npm run watch.

Sources

@sarthaksavvy
sarthaksavvy / .gitconfig
Last active September 15, 2021 19:21
Git configuration
[alias]
acm = "!f() { git add . && git commit -m \"$(echo $@)\"; }; f";
com = checkout master
cob = checkout -b
b = branch
p = push
pl = pull
s = status
@Merott
Merott / tailwind-colors-as-css-variables.md
Last active July 25, 2024 09:31
Expose Tailwind colors as CSS custom properties (variables)

This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.

There are a couple of main reasons this is helpful:

  • You can reference all of Tailwind's colors—including any custom ones you define—from handwritten CSS code.
  • You can define all of your colors within the Tailwind configuration, and access the final values programmatically, which isn't possible if you did it the other way around: referencing custom CSS variables (defined in CSS code) from your Tailwind config.

See the Tailwind Plugins for more info on plugins.