Laravel WORLD
36.9K views | +4 today
Follow
Laravel WORLD
Your new post is loading...
Your new post is loading...
Scooped by David Marko
Scoop.it!

Pretty URL using laravel 4.2 | Apache Help Blog

localhost/branch/pass/blah. I've achieved this before in .htaccess while NOT using laravel I was just wondering if laravel had their own way of doing this or will it be the same as I've previously done?
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Advanced Routing and Filters in Laravel

Advanced Routing and Filters in Laravel | Laravel WORLD | Scoop.it
I think you are interested in more than Basic Routing, let's go deeper into routing concept in Laravel framework. In this tutorial we will check Route filters, Named Routes and Route Groups in detail.

Let's take a look at how you can achieve an URL in laravel even though your ro...
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel + dynamic data filtering with AngularJS • /r/laravel

Laravel + dynamic data filtering with AngularJS • /r/laravel | Laravel WORLD | Scoop.it
Hi, I'm fairly new to Laravel and I'm just starting to look into AngularJS. I was wondering if something like this is possible, and whether it...
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Experimental upgrading to Laravel 5: How I did it

Experimental upgrading to Laravel 5: How I did it | Laravel WORLD | Scoop.it
When I started working on my biggest side project, the “EESTEC Platform for Local Committees” I introduced a few months ago, the latest stable version of Lar...
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Deploy to Heroku buttons with Laravel

Deploy to Heroku buttons with Laravel | Laravel WORLD | Scoop.it
I submitted Cachet to Reddit earlier yesterday morning and had great feedback from it all! It's been great! I'm happy to see that people like the idea and that it's useful to people. One of the first issues submitted was...
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel, BDD and You: The First Feature - Tuts+ Code Tutorial

Laravel, BDD and You: The First Feature - Tuts+ Code Tutorial | Laravel WORLD | Scoop.it
Follow along in the second part in this series on behavior-driven development with Laravel, Behat and PhpSpec. In this part we will build our first feature. We will jump back and forward between Behat and PhpSpec while our feature slowly evolves. | Difficulty: Intermediate; Length: Medium; Tags: Laravel, PHP, phpspec, Behat, TDD, BDD, Acceptance Testing, Test-Driven Development
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Event Scheduling

Laravel 5.0 - Event Scheduling | Laravel WORLD | Scoop.it
Eric Barnes has a longer write up on this, so I'll just keep it short: Laravel 5.0 is introducing a pretty incredible cron-style scheduler (similar to Indatus' Dispatcher) built into the core. Just point a cron job that's scheduled once a minute at artisan schedule:run and you're good to go. */1 * * * * php /path/to/artisan schedule:run For example, you can now bind the following event to clear your auth reminders daily: $schedule ->command('auth:clear-reminders') ->daily(
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Middleware (replacing Filters)

Laravel 5.0 - Middleware (replacing Filters) | Laravel WORLD | Scoop.it
If you've been following along with my previous blog posts about Laravel 5.0, you may have noticed that route filters were first moved to be their own directory and class structure, and then eventually they mysteriously disappeared. You may have even noticed that references to Middleware showed up in their place. Adding custom middleware to your Laravel app has actually been around for a while. For a great introduction to middleware, and how middleware worked in Laravel 4.1, check out Chris Fi
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Route Annotations

Laravel 5.0 - Route Annotations | Laravel WORLD | Scoop.it
Precursor: PHP Annotations # If you're not familiar with how (or why) annotations exist, I'd suggest checking out Rafael Dohms' talk PHP Annotations: They Exist!. In short, annotations are notes about your code that live in the DocBlock. But PHP has the ability to read and parse these notes, and so you can use them to give your code directions. Opinions on them are varied, but they've come to Laravel to stay. Setting the Stage # One of the difficulties on Laravel sites--especially larger s
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Cloud File Drivers

Laravel 5.0 - Cloud File Drivers | Laravel WORLD | Scoop.it
In Laravel 5, you can now use the same Filesystem class which previously simplified interactions with the local filesystem, and now also use it with S3 and Rackspace. It's a simple interface, powered on the backend by Frank de Jonge's Flysystem. That means that you can write your app just like you did using local file storage: /** * Save a thing * @param Thing $thing * @param string $filename */ public function saveThing(Thing $thing, $filename) { File::put('uploads/' . $filename, $
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Directory structure and namespace

Laravel 5.0 - Directory structure and namespace | Laravel WORLD | Scoop.it
One of the big reasons Laravel 4.3 got moved to 5.0 is because the directory structure can seem like a big shift in thinking. I love it. The directory structure has been modified to now better reflect how a majority of Laravel developers either work or recommend working, and this will reduce some of the pain of comprehending "best practices", and it makes the entire task of understanding Laravel simpler. What does it look like? # app Console Http Controllers Middle
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Form Requests

Laravel 5.0 - Form Requests | Laravel WORLD | Scoop.it
Laravel 5.0 # Laravel 5.0 is coming out in November, and there are a lot of features that have folks excited. The New Directory structure is, in my mind, a lot more in line with how most developers work; Flysystem integration will make working with files endlessly more flexible and powerful; Contracts is a great step towards making Laravel-friendly packages that aren’t Laravel-dependent; and Socialite looks about 100x easier than Opauth. Also, Method Injection opens up a lot of really exciting
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel Authentication: Build a Complete System from Scratch

Laravel Authentication: Build a Complete System from Scratch | Laravel WORLD | Scoop.it
Learn how to add login, logout, remember me, signup, password reset, account activation, user admin and more to Laravel.
more...
No comment yet.
Scooped by David Marko
Scoop.it!

How to install Laravel in Linux

First of all we need to Download Composer Then we need to install Laravel through composer then install composer : First way Download composer by typing this into terminal - curl -sS https://getcomposer.org/installer | php Note: If the above fails for some reason, you can download the installer with
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Controllers in Laravel

Controllers in Laravel | Laravel WORLD | Scoop.it
In the basic routing tutorial we have learnt how to link routes to Closures. Closures are nice and quick way of writing of an application logic in a single file app/routes.php. But it's better to organize this behavior using Controller class and take advantage of&nb...
more...
No comment yet.
Scooped by David Marko
Scoop.it!

How to Install Laravel 4.2 via Composter on CentOS 6.5 x86_64

How to Install Laravel 4.2 via Composter on CentOS 6.5 x86_64 | Laravel WORLD | Scoop.it
Introduction Laravel 4 is a MVC framework written in the PHP programming language. It is a fairly young framework, but has quickly risen to become one of the most popular PHP frameworks available. It also has a large vibrant community behind it. To be able to use Laravel 4 you must have a VPS running …
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Digging in to Laravel's IoC Container - Tuts+ Code Tutorial

Digging in to Laravel's IoC Container - Tuts+ Code Tutorial | Laravel WORLD | Scoop.it
Inversion of Control is a technique that allows control to be inverted when compared to classical procedural code. The most prominent form of IoC is, of course, Dependency Injection. Laravel's IoC container is one of the most used Laravel features, yet is probably the least understood. Find out how it works in this tutorial. | Difficulty: Intermediate; Length: Medium; Tags: Laravel, PHP, Web Development
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Environment Detection & Environment Variables

Laravel 5.0 - Environment Detection & Environment Variables | Laravel WORLD | Scoop.it
If you've followed my blog for a while, you've probably seen me struggle with Laravel's environment detection--especially regarding using environment variables. (Example) Thankfully, Laravel 5.0 vastly simplifies environment detection. In 4, you could have multiple environment files based on the environment name (.env.php, .env.local.php, etc.). In all honesty, I never used the environment-specific aspect; I imagine you could theoretically use it to commit all of your environment files to your
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Event Annotations

Laravel 5.0 - Event Annotations | Laravel WORLD | Scoop.it
In 5.0, Laravel is moving more and more of the top-level, bootstrapped, procedural bindings and definitions into a more Object-Oriented, separation-of-concerns-minded structure. Filters are now objects, controllers are now namespaced, the PSR-4-loaded application logic is now separate from the framework configuration, and more. We saw in the last post that annotations are one of the ways Laravel 5.0 is making this change. Where routes used to be bound one after another in routes.php, they now
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Method Injection

Laravel 5.0 - Method Injection | Laravel WORLD | Scoop.it
Laravel 5.0 introduces the ability for the Container to resolve depencies injected into any methods that are resolved by the Container. Read on to learn how, when, and why, it works. The basics of Dependency Injection # One of the first things PHP developers learn as they start growing in modern coding practices is to use dependency injection in order to follow the D in SOLID: Dependency Inversion. Laravel's Container is called an IOC ("Inversion of Control") Container, and that's the case
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - Route Caching

Laravel 5.0 - Route Caching | Laravel WORLD | Scoop.it
Performance optimization within our PHP code isn't always something at the forefront of our minds, but our backend code--especially our more complex operations--can impact our sites' request times to the tune of tens and maybe even hundreds of milliseconds. It may not sound like much, but a few hundred milliseconds can mean a huge difference in the perceived quickness of your applications. Whether or not you were aware of it, the routing logic in Laravel 4 and earlier--especially as you have
more...
No comment yet.
Scooped by David Marko
Scoop.it!

Laravel 5.0 - ValidatesWhenResolved

Laravel 5.0 - ValidatesWhenResolved | Laravel WORLD | Scoop.it
In creating FormRequest, Taylor separated out both an interface (ValidatesWhenResolved) and a trait (ValidatesWhenResolvedTrait) relating to validating a method when its dependencies are resolved (via the IOC container). To be entirely honest with you, I haven't come up with a really clever use case for this code outside of FormRequests. But I hope documenting it here will allow people smarter than me to see if it brings any particularly useful possibilities. So, if you read my last blog pos
more...
No comment yet.