Skip to content

Instantly share code, notes, and snippets.

View hasanablak's full-sized avatar
👑
Laravel Guru

Hasan Ablak hasanablak

👑
Laravel Guru
View GitHub Profile
@guamacherox
guamacherox / useErrorHandler.js
Last active April 8, 2023 14:46
React Hook for axios error interceptor
import { useEffect } from 'react';
import axios from 'axios';
/**
* @description Hooks an axios error interceptor for your react application
*/
const useErrorHandler = () => {
const errorInterceptor = axios.interceptors.response.use(
res => res,
@mqtik
mqtik / wildcard-ssl-certificate.md
Created October 11, 2018 19:28 — forked from talyguryn/wildcard-ssl-certificate.md
How to get a wildcard ssl certificate and set up Nginx.

How to get and install a wildcard SSL certificate

In this guide you can find how to resolve the following issues.

Feel free to ask any questions in the comments section below.

@brunogaspar
brunogaspar / macro.md
Last active November 25, 2024 11:01
Recursive Laravel Collection Macros

What?

If a nested array is passed into a Laravel Collection, by default these will be threaded as normal arrays.

However, that's not always the ideal case and it would be nice if we could have nested collections in a cleaner way.

This is where this macro comes in handy.

Setup