-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix.php
More file actions
33 lines (24 loc) · 833 Bytes
/
fix.php
File metadata and controls
33 lines (24 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Fix Laravel Cache Issues
*/
echo "<h1>Fixing Laravel...</h1>";
chdir(__DIR__);
echo "<h3>1. Clearing All Caches</h3>";
shell_exec('php artisan config:clear 2>&1');
echo "✓ Config cleared<br>";
shell_exec('php artisan route:clear 2>&1');
echo "✓ Routes cleared<br>";
shell_exec('php artisan view:clear 2>&1');
echo "✓ Views cleared<br>";
shell_exec('php artisan cache:clear 2>&1');
echo "✓ Cache cleared<br>";
echo "<h3>2. Recaching (without routes - they have conflicts)</h3>";
shell_exec('php artisan config:cache 2>&1');
echo "✓ Config cached<br>";
shell_exec('php artisan view:cache 2>&1');
echo "✓ Views cached<br>";
echo "<hr>";
echo "<h2 style='color: green;'>✓ Fixed!</h2>";
echo "<p><a href='/'>Visit Application</a></p>";
echo "<p><strong>Delete this file after visiting!</strong></p>";