ramonpego

Experience

320

0 Best Reply Awards

  • Member Since 9 Months Ago
  • 1 Lesson Completed
  • 0 Favorites

19th July, 2018

ramonpego left a reply on Laravel Can't Find My Assets On Production • 4 weeks ago

@Tray2 I forgot to respond to you, it did not work. I'm thinking that is not the problem with the root folder

ramonpego left a reply on Laravel Can't Find My Assets On Production • 4 weeks ago

@Cronix I already did this, but I do not have SSH access to execute some commands. And also I do not agree on using shared hosts, but it is my client, since I convinced him to use new services on a private host. But those that already exist (there are 22 of them) are still using shared.

ramonpego left a reply on Laravel Can't Find My Assets On Production • 4 weeks ago

I understand that I left my .env online. But if I can say that if without ssh access, without installing composer I can run my application normally, I also need to solve the problem of imports.

ramonpego left a reply on Laravel Can't Find My Assets On Production • 4 weeks ago

does not work i had to put

my document root is on www/ (in my case on host is /public_html)

ramonpego started a new conversation Laravel Can't Find My Assets On Production • 4 weeks ago

Hello, i have an application on production made on laravel, but all my assets on public paste, laravel can't find using {{asset()}} or {{url()}}.

My host is limited i can't use ssh, i cant install composer, i can't run composer dump-autoload etc.

My application does not work perfectly, i had to import using normal tags href="../../foo/bar.jpg"

But values from database doesn't work

What i can do to solve this. I read about its possible wrong because my htaccess it's wrong but i can't solve, here's my htaccess

Options -MultiViews -Indexes

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

26th October, 2017

ramonpego left a reply on Routes Do Not Work As They Should • 9 months ago

@m-rk bro, thank you, I used it thit way and it worked.

Route::fallback(function (){
    return view('errors.404');
});


ramonpego left a reply on Routes Do Not Work As They Should • 9 months ago

i have this;

'''

Route::middleware('auth:api')->get('/user', function (Request $request) { return $request->user(); }); '''

ramonpego started a new conversation Routes Do Not Work As They Should • 9 months ago

My site is online, you can access it, and type anything after your url and will see that the site does not give 404 error or any other, but if you access the routes that exist will ask for login.

My site is online: http://18.221.49.184/ you can access it, and type anything after your url (like http://18.221.49.184/kaskadaksdak) and will see that the site does not give 404 error or any other, but if you access the routes that exist will ask for login.

Route::get('/', function () { return view('welcome'); });



Auth::routes();


Route::group(['middleware' => 'auth'], function() {
Route::view('/','welcome');

//Página Inicial do sistema
    Route::get('/home', '[email protected]')->name('home');

//Aluno
    Route::get('/aluno/listar', '[email protected]');
    Route::resource('/aluno', 'AlunoController');

//Instrutor
    Route::get('/instrutor/listar', '[email protected]');
    Route::resource('/instrutor', 'InstrutorController');

//Modalidade
    Route::get('/modalidade/listar', '[email protected]');
    Route::resource('/modalidade', 'ModalidadeController');

//Ficha
    Route::get('/fic    ha/listar', '[email protected]');
    Route::resource('/ficha', 'FichaController');

//Aula
    Route::get('/aula/listar', '[email protected]');
    Route::resource('/aula', 'AulaController');

//Matricla
    Route::get('/matricula/listar', '[email protected]');
    Route::resource('/matricula', 'MatriculaController');

});

25th October, 2017

ramonpego started a new conversation Routes Laravel , Aceita Qualquer Rota, Sem Acusar Erro 404 • 9 months ago

Eu tenho um projeto em desenvolvimento, notei recentemente que se eu digitar qualquer coisa na url após a '/' ele aceita. Exemplo http://webfit.com.br/laracastt

exibe a pagina o layout padrão

Meu arquivo de rota web.php

<?php

//Página de Apresentação
//Route::get('/', function () { return view('welcome'); });

Route::view('/','welcome');


Auth::routes();
Route::group(['middleware' => 'auth'], function() {

//Página Inicial do sistema
    Route::get('/home', '[email protected]')->name('home');

//Aluno
    Route::get('/aluno/listar', '[email protected]');
    Route::resource('/aluno', 'AlunoController');

//Instrutor
    Route::get('/instrutor/listar', '[email protected]');
    Route::resource('/instrutor', 'InstrutorController');

//Modalidade
    Route::get('/modalidade/listar', '[email protected]');
    Route::resource('/modalidade', 'ModalidadeController');

//Ficha
    Route::get('/ficha/listar', '[email protected]');
    Route::resource('/ficha', 'FichaController');

//Aula
    Route::get('/aula/listar', '[email protected]');
    Route::resource('/aula', 'AulaController');

//Matricla
    Route::get('/matricula/listar', '[email protected]');
    Route::resource('/matricula', 'MatriculaController');
});

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.