Posts with php Tag

Slugs for URLs tutorial

For those wondering how one can change the default 'id' endpoint URL format to a slug look no further. What this post will be going over is removing the 'id' in the URL with a user friendly URL (SEO friendly) from scratch but I will be skipping over...

Read more

PHP artisan returned with error

I've been trying to get a Twitter wrapper working for this website to display my latest tweets. During this my site suddenly crashed. Nothing showed up. Scouring the internet I came across a post at https://laracasts.com/discuss/channels/laravel/e...

Read more

Twitter For Laravel Part 2

Following on from Part 1, in this short tutorial we’ll post tweets to your account and also add hashtags. I won’t be going over how to retrieve hashtags from the blog, that is something that won’t be covered in this tutorial but you can always grab w...

Read more

Artisan Tinker With Laravel

A neat tool to literally tinker/interact with your website. It's new to me at the moment but I currently use it to test relationships between models and fiddle with the database. To use Tinker, bring up the command line interface and we'll move to...

Read more

Redirection On Login

If we’d like to provide an admin area and a standard user area, this can be done in the file Auth/LoginController.php in the function authenticated() which you must include yourself, to override the method

	
    protected function aut...

Read more

Authorisation/Authentication features in Laravel Part 1 - Gates/Policies

Gates, Policies, Guards and Middleware. When you first use them, they all seem very similar. But in fact each have a use for a specific area of authorisation and settings rules throughout your website. If you’re new or confused with Laravel’s auth...

Read more

Authorisation/Authentication features in Laravel Part 2 - Guards

Guards define how the application retrieves and sends information about the user; whether it’d be by the class method of cookies or api tokens. Guards are slightly more technical but using guards allows us to have multiple authentication. So imagine...

Read more