Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. APP_ENV=local
  2. APP_KEY=base64:MLnHL22oIs9X597weZpiHfx25EZ8/PZhAxPZY3+aNms=
  3. APP_DEBUG=true
  4. APP_LOG_LEVEL=debug
  5. APP_URL=137.135.53.188
  6.  
  7. DB_CONNECTION=mysql
  8. DB_HOST=137.135.53.188
  9. DB_PORT=1433
  10. DB_DATABASE=OLTP
  11. DB_USERNAME=username
  12. DB_PASSWORD=password
  13.  
  14. CACHE_DRIVER=file
  15. SESSION_DRIVER=file
  16. QUEUE_DRIVER=sync
  17.  
  18. REDIS_HOST=127.0.0.1
  19. REDIS_PASSWORD=null
  20. REDIS_PORT=6379
  21.  
  22. MAIL_DRIVER=smtp
  23. MAIL_HOST=mailtrap.io
  24. MAIL_PORT=2525
  25. MAIL_USERNAME=null
  26. MAIL_PASSWORD=null
  27. MAIL_ENCRYPTION=null
  28.  
  29. 'sqlsrv' => [
  30. 'driver' => 'sqlsrv',
  31. 'host' => env('DB_HOST', '137.135.53.188'),
  32. 'port' => env('DB_PORT', '1433'),
  33. 'database' => env('DB_DATABASE', 'OLTP'),
  34. 'username' => env('DB_USERNAME', 'MapStoriesDB'),
  35. 'password' => env('DB_PASSWORD', '{(Hr]ucRsUKh9{@N'),
  36. 'charset' => 'utf8',
  37. 'prefix' => '',
  38. 'schema' => 'public',
  39. ],
  40.  
  41. <?php
  42.  
  43. namespace App;
  44.  
  45. use IlluminateDatabaseEloquentModel;
  46.  
  47. class News extends Model
  48. {
  49. protected $table='news_news';
  50. }
  51.  
  52. <?php
  53.  
  54. namespace AppHttpControllers;
  55.  
  56. use IlluminateHttpRequest;
  57.  
  58. use AppHttpRequests;
  59.  
  60. use AppNews;
  61.  
  62. class newsController extends Controller
  63. {
  64. public function index(){
  65.  
  66. return News::all();
  67.  
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement