Skip to content

Instantly share code, notes, and snippets.

View peterson-umoke's full-sized avatar
🏠
Working from home, Freelancer, Software Engineer

Peterson Umoke peterson-umoke

🏠
Working from home, Freelancer, Software Engineer
View GitHub Profile
@peterson-umoke
peterson-umoke / Removing the Public path from laravel url
Last active July 26, 2018 13:33
How to remove the public path from laravel when using a shared server
We all know how painful it is to setup a beautiful application and then just discover that it sucks once it lands in your shared server. Here is how you can remove that annoying that annoying 'public' url path in your laravel application
1. change server.php in your root folder to index.php , no modifications pls
2. create a .htaccess file in your root folder
3. paste the code below
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
@peterson-umoke
peterson-umoke / Simple Genericons social-menu with scss
Created August 20, 2016 17:29
This is the easiest way of creating a social menu, making sure to link the genericons font by wordpress. main link : "https://cdn.jsdelivr.net/genericons/3.4.1/genericons.css"
.social-links ul a:before {
font-family: "Genericons";
font-size: 20px !important;
font-style: normal;
font-weight: normal;
line-height: 1;
text-decoration: none;
vertical-align: text-bottom;
-webkit-font-smoothing: antialiased;
}