Project XGallery có rất nhiều thứ cần ajax. Tất nhiên chuyển sang Vue thì sẽ ngon hơn nhiều. Nhưng còn hạn chế kiến thức, thôi thì xài Ajax tạm.
Deploy update for Laravel project
Well. Bài này mình sẽ guide 1 chút về việc deploy bản update cho Laravel project. Giả sử bạn có 1 vài fixes, updates và cần deploy lên. So ... To enable maintenance mode, execute the down Artisan command php artisan down git pull php artisan optimize:clear Nếu có jobs failed và cần retry lại... Continue Reading →
Quick command to reset your data with Laravel route
Với project XGallery thường xuyên phải reset data sau khi test một cái gì đó. Mà nhiều thứ phải làm quá ... nên build nhanh 1 con clear:all Artisan::command('clear:all', function () { array_map('unlink', array_filter((array) glob(storage_path('logs/*.log')))); $this->comment('Logs have been cleared!'); array_map('unlink', array_filter((array) glob(storage_path('app/*.tmp')))); $this->comment('Tmp files have been cleared!'); $tableNames = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames(); Schema::disableForeignKeyConstraints(); foreach ($tableNames as $name)... Continue Reading →
Laravel – Sử dụng logging với channels
Cách sử dụng logging với stacks - channels & driver trên Laravel.
Laravel – Setup Scheduling & Queues on MacOS
There is one main advantage of Supervisor that the task you set there is working constantly. This mean that when the proces will finish the new one will starts immediately.Crontab runs every process for a minute minimum! So if you have a task like queue:work is much better to use Supervisor over Crontab.Supervisor VS CronJobs Scheduling https://laravel.com/docs/6.x/scheduling Trước hết định nghĩa... Continue Reading →
OneJAV – Bài toán crawl hết data site
Hiện tại site này có khoảng 5210 pages . Target là làm sao XGallery khi install trên 1 server mới thì có thể crawl hết data này ???
How to use laravel queues
Bài viết này vừa viết để share và cũng là để mình nắm rõ, chi tiết hơn về món này.
XGallery – Laravel version
http://xcrawler.net/blogs/xgallery-on-laravel/ Lần refactor này ngoài mục đích để tụng kinh Laravel cho công việc, nhân tiện đó cũng sẽ improve nhiều thứ Configuration cho từng CrawlerOAuth với Laravel tốt hơnImprove Web interface với các notificationsImprove với dispatcher / eventImprove với CollectionGiảm thiểu duplicate codeImprove UnitTest: Bao gồm Feature Test & UnitTest Và nhiều thứ hay... Continue Reading →