I'm creating a microservice for gcloud with laravel. everything works properly, but my problem is related to the custom template of email notification feature. In particular It seems not to be considered the customization in resource/view/vendor/mail folder. In local everything works fine, but once deployed the template is ignored and the message is sent with default laravel notification template. I suppose it is related to the configuration in app.yaml file, in the handler area, am I correct? In that case I would not know how to enable the application to see properly that folder. thanks in advance to all.
Found! serve static files configuring handlers in app.yaml:
https://cloud.google.com/appengine/docs/standard/python/getting-started/serving-static-files
Related
I'm a newbie to Laravel projects but I need to have one accessible over the internet so I tried using DirectAdmin but whenever I go to my domain I get an index (pictures attached).
I renamed the Laravel 'public' folder to 'public_html', is that correct? Here is my file structure.
Here is what I get when I go to my assigned domain which isn't my website at all.
The webpage should look something like this
I also found a laravel app using Softaculous linked here (https://panel.freehosting.com:2222/CMD_PLUGINS/softaculous/index.raw?act=software&soft=419). Am I required to use this app?
At first, you need to learn about the laravel directory structure. You don't need to change the laravel public folder to public_html. I am not sure how the DirectAdmin server works. but if you see a laravel directory instead of serving an application it's might be a path-related issue in your server. your domain should serve your application public folder.
I just found a tutorial for the DirectAdmin server with laravel. that might help.
In laravel .env file we can call another variable like this ${APP_URL} . Now I uploaded my app to google cloud app engine and using app.yaml but it isn't working. Can anyone help me solve it?
As per what was discussed in the comments, I believe that what you want to do is to simply declare APP_URL in your app.yaml to use it as a placeholder in other parts of the same app.yaml file.
The problem with that approach is that yaml does not support placeholders natively, so in order to do this you would have to use Anchors and Alias nodes as a workaround. You can find more details and also an example on those topics in this community answer.
After I wanted to deploy my Laravel app to google cloud I have faced many challenges. For example, I couldn't access static files in my public folder. That was solved with 'handlers' in app.yaml. And for my own question, we can remove .env from exclude and uploaded beside app.yaml file and it works well and this syntax '${APP_URL}' is working well. My app is a single page and it is working on Google App Engine well right now. Thanks
I just installed Laravel file manager on my project and I don't understand why I get an NotFoundHttpException when I try to pop up the file manager.
I've installed it in many projects and it's the first time that I get this kind of error.
I already put the LaravelFilemanagerServiceProvider in my providers,
and the service provider is above the RouteServiceProvider
I've tried to clear the route cache, to publish all files etc...
When I do php artisan route:list I have the correct routes with the correct middlewares,
but on my browser impossible to access the file manager,
so with the console the routes appear to be correctly registered, but the browser does not find it
any idea how to proceed ? Thank you for your answers
I found the solution,
I used a pre-made code for the wysiwyg editor coming from Laravel File Manager website but the code was wrong,
Be careful in the "Integration" section, the code is not always correct with the default given configuration.
I have uploaded my Laravel app unto a directory under the public folder on my domain,
html_docs/public/store
where 'store' is the folder of my Laravel App. My main domain pointed at 'html_docs/public', please check my laravel app here "https://www.dinhi.org/store/". As you can see, when you click the "sell with us" or "login" on the top header, it returns
Not Found
The requested URL /store/dashboard/login was not found on this server.
I have set up to in my '.env' and in my 'config/app.php' the right url like "https://www.dinhi.org/store/" but still not working, any ideas, help please?
PS: I'm on Laravel 5.3 and I'm using Hesto Multi Auth. In my local, this issue does not exist like everything is good and working.
Laravel is not meant to be installed completely into the document root of your server. Actually, every folder of your laravel application except the public folder should be inaccessible from the web.
Your exposing yourself to a security risk here, since everybody could access every file of your app, including potential .env files with database credentials and the likes.
Cheers
Christoph
How I create and run laravel spark project:
Create project using spark new myproject
set all required directory permissions
Since I am on live server I hit the public folder within the project.
The page display with two buttons 'Login' and 'Register'
When these buttons are clicked it jumps to the root directory, nothing works
Even if i hit the url like 'http://myip/myproject/register' the registration does not work.
What I am missing. please guide. I can't create virtual host.
You're using wrong web server configuration. You web server is pointed to a root directory where Laravel project lives.
You need to point it to a public directory which is inside Laravel project and restart web server.
After that use normal URLs without public in it.
Update
Correct nginx and Apache settings for Laravel 5