PHPNews

Custom Bootstrap Pagination in Laravel

Written by Appstract - Medium - Published on Appstract - Medium
Aggregated on Wednesday June 28, 2017 - Permalink

Use Bootstrap components to create a pagination for your custom collections Last time I wrote about how Laravel Bootstrap Components can clean up your view files. Today I want to show how you can use this package to create a pagination with rendered Bootstrap buttons, for your custom collections. Prerequisites Laravel 5.4+ Bootstrap 4 Bootstrap components installed according to …

Continue reading »


Laravel Bootstrap Components

Written by Appstract - Medium - Published on Appstract - Medium
Aggregated on Monday June 19, 2017 - Permalink

Easily use Bootstrap components as Laravel components Bootstrap is a very popular front-end framework. A lot of developers use it to quickly create interfaces for their Laravel App, so do we at Appstract. While it makes a lot of tasks easier, it also requires a lot of HTML code to use the default components (like alerts and modals) which can make your template files look messy. Luckily, …

Continue reading »


Laravel Template Path Hints

Written by Appstract - Medium - Published on Appstract - Medium
Aggregated on Tuesday June 13, 2017 - Permalink

Show which templates and partials are loaded into your views Path hints? Those of you who have worked with Magento will probably know about path hints, and how helpful they can be. When working on apps with lots of views and partials it can become difficult and time consuming to find out which partial contains the code that you need to work on. Luckily I created a package that does this …

Continue reading »


Manage Redirects Based on the Referer in Your Laravel Project

Written by Appstract - Medium - Published on Appstract - Medium
Aggregated on Friday June 2, 2017 - Permalink

Redirect to different pages in multiple time periods Nowadays a lot of companies are increasing their marketing efforts to get the best results as possible. Of course, the way they do that varies, but we often see that multiple channels and multiple domain names are involved. But how do you handle changes? And new landing pages? For every campaign? Current habbits One things you can do …

Continue reading »


Using Environment Variables in JavaScript

Written by Appstract - Medium - Published on Appstract - Medium
Aggregated on Thursday December 22, 2016 - Permalink

With Laravel Elixir About .env While working on your Laravel project, you may want to have some dynamic behavior based on your environment. For example, you want to set the database connection settings, or you want to specify the applications URL. Laravels way of dealing with this, is by providing a .env file. This file can contain any variable, which can hold different values on all your …

Continue reading »


Working With Different Versions of PHP in Laravel Applications

Written by Appstract - Medium - Published on Appstract - Medium
Aggregated on Monday December 12, 2016 - Permalink

With Laravel Homestead The problem As I’m working on different versions of Laravel projects. I need to have both PHP version 5.6 and 7. It would be nice if I could switch between these versions without a whole lot of hassle. I have been messing around with this for a bit, turns out there are a few ways to do this: You can go for the per project installation approach. Change the PHP …

Continue reading »