
// Start Browser Sync
browser-sync start --proxy "127.0.0.1:8000" --files "resources/views/**/*.php, public/css/*.css, public/js/*.js" --reload-delay 200




// Clear all cache, route, config and view
php artisan optimize:clear




// Clear spesific stuff
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear



// Responsive CSS Layout
/* Mobile Phones (less than 425px) */
@media only screen and (max-width: 425px) {}

/* Tablets (425px to 768px) */ 
@media only screen and (min-width: 425px) and (max-width: 768px) {}

/* Desktops (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {}

/* Large Screens (more than 1024px) */
@media only screen and (min-width: 1024px) {}



// Step to Upload in CPANEL
1. Zip laravel file
2. Export sql
3. Go CPanel
4. Create new database (Manage Database)
5. Import sql file
6. Upload & extact zip file in public.html
7. Move all in public to the system root
8. Move laravel folder to Cpanel root
9. Edit directory in index.php
10. Edit .env:

APP_DEBUG=false
APP_URL=http://demo.khaleefapps.com/
DB_DATABASE=khaleefapp_attendance_system
DB_USERNAME=khaleefapp_demo_user
DB_PASSWORD=@KC$upp0rt

11. Edit in web.php under auth:

Route::get('/storage-link', function(){
    $targetFolder = storage_path('app/public');
    $linkFolder = $_SERVER['DOCUMENT_ROOT'] . '/storage';
    symlink($targetFolder, $linkFolder);
});

12. Run the route to build connection for the storage




// Create maintenance View and Enable Maintenance Mode
Maintenance Mode:
1. Go to web.php and add:

Route::get('/enable-maintenance', function() {
    Artisan::call('down');
});

2. Run the enable maintenance route to enable maintenance



// Disable Maintenance Mode
Disable Maintenance:
1. Go to storage/framework
2. Remove down file

