Skip to content

Instantly share code, notes, and snippets.

View wyyr's full-sized avatar

Low wyyr

  • Indonesia
View GitHub Profile
@ahmadshobirin
ahmadshobirin / set locale and timezone indonesia in laravel.md
Last active September 23, 2025 14:25
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']);

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@Shelob9
Shelob9 / NoIE.php
Last active May 4, 2022 17:04
A Laravel middleware to prevent Internet Explorer from accessing route(s)
<?php
namespace App\Http\Middleware;
use Closure;
use UserAgentParser\Exception\NoResultFoundException;
use UserAgentParser\Provider\WhichBrowser;
/**
* Class DeviceDetect
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 7, 2025 04:26
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@denji
denji / http-benchmark.md
Last active November 2, 2025 09:48
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@irazasyed
irazasyed / Install Composer using MAMP's PHP.md
Last active May 30, 2025 08:59
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php