Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP]Instalacja laravel framework
Forum PHP.pl > Forum > Przedszkole
miras
Witam, korzystałem kiedyś z tego frameworka, teraz muszę znowu i troszeczkę się zmieniło.. wrzuciłem pliki, ustawiłem config, dalem chmod 777 na /storage i mam błędy:

  1.  
  2.  
  3.  
  4. Warning: require(/home/users/x/public_html/obstaw/bootstrap/../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in /home/users/x/public_html/obstaw/bootstrap/autoload.php on line 17
  5.  
  6. Fatal error: require() [function.require]: Failed opening required '/home/users/x/public_html/obstaw/bootstrap/../vendor/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/users/x/public_html/obstaw/bootstrap/autoload.php on line 17


plik autoload.php

  1. <?php
  2.  
  3. define('LARAVEL_START', microtime(true));
  4.  
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Register The Composer Auto Loader
  8. |--------------------------------------------------------------------------
  9. |
  10. | Composer provides a convenient, automatically generated class loader
  11. | for our application. We just need to utilize it! We'll require it
  12. | into the script here so that we do not have to worry about the
  13. | loading of any our classes "manually". Feels great to relax.
  14. |
  15. */
  16.  
  17. require __DIR__.'/../vendor/autoload.php';
  18.  
  19. /*
  20. |--------------------------------------------------------------------------
  21. | Include The Compiled Class File
  22. |--------------------------------------------------------------------------
  23. |
  24. | To dramatically increase your application's performance, you may use a
  25. | compiled class file which contains all of the classes commonly used
  26. | by a request. The Artisan "optimize" is used to create this file.
  27. |
  28. */
  29.  
  30. if (file_exists($compiled = __DIR__.'/compiled.php'))
  31. {
  32. require $compiled;
  33. }
  34.  
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Setup Patchwork UTF-8 Handling
  38. |--------------------------------------------------------------------------
  39. |
  40. | The Patchwork library provides solid handling of UTF-8 strings as well
  41. | as provides replacements for all mb_* and iconv type functions that
  42. | are not available by default in PHP. We'll setup this stuff here.
  43. |
  44. */
  45.  
  46. Patchwork\Utf8\Bootup::initMbstring();
  47.  
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Register The Laravel Auto Loader
  51. |--------------------------------------------------------------------------
  52. |
  53. | We register an auto-loader "behind" the Composer loader that can load
  54. | model classes on the fly, even if the autoload files have not been
  55. | regenerated for the application. We'll add it to the stack here.
  56. |
  57. */
  58.  
  59. Illuminate\Support\ClassLoader::register();
  60.  
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Register The Workbench Loaders
  64. |--------------------------------------------------------------------------
  65. |
  66. | The Laravel workbench provides a convenient place to develop packages
  67. | when working locally. However we will need to load in the Composer
  68. | auto-load files for the packages so that these can be used here.
  69. |
  70. */
  71.  
  72. if (is_dir($workbench = __DIR__.'/../workbench'))
  73. {
  74. Illuminate\Workbench\Starter::start($workbench);
  75. }
  76.  


wie ktoś co jest grane?

ewentualnie wie ktoś może gdzie można pobrać starsze wersje tego frameworka? na stronie producenta nie mogę znaleźć...
pedro84
Czytać dokumentację trzeba:
Kod
php composer.phar install
miras
tak, a jeśli ja nie mam dostępu do żadnej konsoli - nie da się obejść jakoś bez tego compresora?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.