Friday, November 27, 2020

Laravel - Specify Custom Folders for Migration Files

By default in Laravel you have all migration files in on folder, that called database/migrations/

It's cool, but if your project has grown, you may found this folder includes a lot of files and it's not easy to support them. The best solution is to create sub-directories (according to your needs or per version) and create/put your migrations files in specific directory.

This is the standard way how we use migration files:


 

 


 

 

 

 

 

 

 

Let's try to improve this. For example you may decide to separate migration files according to the version of your script, so the structure of your migration directory will look like this:








 

Looks much better, right? Instead of a long list of migration files.

So when you start new version, you need to create a new directory, name it with the next version number and all migrations, related to this version create only in new directory.

Is this enough? Not really.

But default Laravel waiting you place migration files directly in database/migrations/ directory, not in sub-directories. So we just need to inform Laravel from where it has to take migration files. Let's do it.

We have to open AppServiceProvider.php file, and add in the boot() method following code, that will tell to Laravel from where take migration files.

/*
|--------------------------------------------------------
|  Register custom migration paths
|  We specify sub-directory for each version, like:
|      - database/migrations/0.8.1/
|      - etc.
| You may use DIRECTORY_SEPARATOR instead of /
|-------------------------------------------------------- */ $this->loadMigrationsFrom([ database_path().'/migrations/0.8.1', database_path().'/migrations/0.8.2', database_path().'/migrations/0.8.3', ]);

Next time you will add a new directory, just remember to update this list of default directories.


Saturday, November 21, 2020

2020 Black Friday Week Sales Started!

 



Hi, everyone, this 2020 Black Friday Week Sales!

Enjoy with a 50% Offer till 28 Novmber 2020 ONLY!

Coupon Code:
2020-BFRI-9BM0-GNIA






Valid on:
https://apphp.com

uHotelBooking - hotel management, reservation and online booking system for all types of accommodations and hotel operations.
http://hotel-booking-script.com

 uBusinessDirectory - fully-featured web solution for business listings, classifieds directory and yellow pages website.

http://business-directory-script.com

uAutoDealers - fully-featured web solution for car dealerships and auto classified websites
http://auto-dealers-script.com

uDoctorAppontment - clinic management, doctor and therapist online medical appointment scheduling system for the management of health care appointments.
http://doctor-appointment-script.com

uBidAuction -PHP auction script, popular and cost effective solution to launch your Classic and Bid auctions website.
http://www.bid-auction-script.com/
 

Saturday, July 25, 2020

New version 8.4.7 of ApPHP DataGrid Pro is released

The new version 8.4.7 of ApPHP DataGrid was released and available now for downloading. There are many improvements and new features. This version requires full re-installation, if you work with one of previous. Please read carefully Getting Started.

The goal of ApPHP DataGrid script is to simplify the generation and editing of DataGrid pages for web developers. It is a fully functional, outstanding open source PHP control.

To view a Live Demo click here.
To download new version click here.


Saturday, May 30, 2020

New product - Android mobile app for uBusinessDirectory released


We're happy to announce that Android mobile app for uBusinessDirectory has been released.
Almost everyone nowadays wants a mobile version of their website. Using our mobile appointment app will help your business to increase the revenue of business directory with ease. This is a truly hybrid mobile application for your business directory website, where you can reach your clients in real-time.
  • All the data will be displayed realtime.
  • Search listings and contact them on the go.
  • Works with businesses, private persons and other
Clients could download mobile app, install it and look for business listings directly form their mobile or tablet devices.
We also suggest a custom solution for your business, where you can change the logo of your company and other elements of the template and app.
Find more information here.

Saturday, May 16, 2020

New version 2.3.4 of uBusinessDirectory is released

New version 2.3.4 of uBusinessDirectory script has been released. uBusinessDirectory is one of the best one-size-fits-all solutions for creating Business Directory classified websites. This script allows to add categories, then associate added businesses to these categories. We provide you all things you need for a successful website such as: listings management, search engine friendly URLs, database backup, advanced text editor, banner rotation system etc. So it is really easy to start your own successful directory website. Listing owner has a complete control on listings in a real-time. See full list of changes here.