طلب مساعدة في مشروع laravel

  • adnansy

عند رفع مشروع laravel تظهر هذه الرسالة في هذا الرابط

وعند الدخول إلى الموقع أيضا عن طريق

/public

تظهر رسالة مختلفة أريد حل المشكلة

مع العلم أن الموقع يعمل بكفاءة عالية على السيرفر المحلي


if you do not have SSH access do the following

  1. empty the content of publics directly on your project folder

  2. Edit index.php now in your-project/index.php and not your-project/public/index.php

from require DIR.'/../bootstrap/autoload.php'; to require DIR.'/bootstrap/autoload.php';

from $app = require_once DIR.'/../bootstrap/app.php';

to $app = require_once DIR.'/bootstrap/app.php';

  1. Edit server.php

from

if ($uri !== '/' && file_exists(DIR.'/public'.$uri)) { return false; }

require_once DIR.'/public/index.php';

to

if ($uri !== '/' && file_exists(DIR.'/'.$uri)) { return false; }

require_once DIR.'/index.php';

that's all...now you can access your project from localhost/your-project