Giter Club home page Giter Club logo

Comments (8)

teamupdivision avatar teamupdivision commented on May 24, 2024

Hello, @nereauweb. Thank you for using our products.
We could not reproduce the issues you have reported.
Can you please let us know the exact steps you took to install the project?

Thank you

from ct-argon-dashboard-pro-laravel.

nereauweb avatar nereauweb commented on May 24, 2024

Hello, I tried again, this time with non-root user, with same result. I use Apache on Linux CentOs7.
What I did was:

  • uploaded the unzipped files
  • set permissons for write / read to non-root user and apache
  • run "composer install" (successfully: 80 installs, got some suggestions but no warning / errors)
  • touched and edited .env
  • run "php artisan key:generate" -> application key set succesfully.
  • run "php artisan migrate --seed" -> (...) Database seeding completed successfully.
  • run "php artisan storage:link" -> The [public/storage] directory has been linked

Got the reported error at this stage

  • Tried to run: "php artisan route:cache", got error:

Route cache cleared!

LogicException : Unable to prepare route [api/user] for serialization. Uses Closure.

at /var/www/wope.test/vendor/laravel/framework/src/Illuminate/Routing/Route.ph p:917
913| */
914| public function prepareForSerialization()
915| {
916| if ($this->action['uses'] instanceof Closure) {

917| throw new LogicException("Unable to prepare route [{$this-> uri}] for serialization. Uses Closure.");
918| }
919|
920| $this->compileRoute();
921|

Exception trace:

1 Illuminate\Routing\Route::prepareForSerialization()
/var/www/wope.test/vendor/laravel/framework/src/Illuminate/Foundation/Cons ole/RouteCacheCommand.php:62

2 Illuminate\Foundation\Console\RouteCacheCommand::handle()
/var/www/wope.test/vendor/laravel/framework/src/Illuminate/Container/Bound Method.php:32

Please use the argument -v to see more details.

  • Run "php artisan route:clear" -> Route cache cleared!
  • Run "php artisan config: cache" -> Configuration cache cleared! -> Configuration cached successfully!

Still same error. Which is: I can only see the very first page, but can't navigate to any. If I change the / page in the route I get to see it, but again, not to navigate to the others. Result is always:

Not Found
The requested URL /login was not found on this server.

from ct-argon-dashboard-pro-laravel.

nereauweb avatar nereauweb commented on May 24, 2024

I also have a runnin laravel project, my final goal is to use there the template. Could you please suggest the best way to achieve that?

from ct-argon-dashboard-pro-laravel.

nereauweb avatar nereauweb commented on May 24, 2024

I also report my http .conf, is the same configuration (apart for URLs and Path) I use in my other working Laravel project on the same machine:

<VirtualHost *>
	DocumentRoot "/var/www/wope.test/public/"
	ServerName test.wope.it
	<Directory "/var/www/wope.new/public/">
		Options FollowSymLinks
		ReWriteEngine On
                AllowOverride All
                Require all granted
	</Directory>
</VirtualHost>

from ct-argon-dashboard-pro-laravel.

nereauweb avatar nereauweb commented on May 24, 2024

Sorry, my fault! I left the directory reference to the other project's path... so the problem was not in the code or permission, where I was looking in vain, but in the .conf. Working now.

(I still would appreciate some insight on importing the template to an existing project, if possibile)

Thanks

from ct-argon-dashboard-pro-laravel.

teamupdivision avatar teamupdivision commented on May 24, 2024

Hello @nereauweb
I'm really glad you solved the issue.
For the template import to an existing project, do you want to import just the template or the Laravel part also?

from ct-argon-dashboard-pro-laravel.

nereauweb avatar nereauweb commented on May 24, 2024

from ct-argon-dashboard-pro-laravel.

teamupdivision avatar teamupdivision commented on May 24, 2024

Generally speaking you need to import all of the files from the public folder to your project resources and start using the CSS / Javascript files
If in the blade files you need to add new content sections or updates, make sure to use directly HTML content from the Creative Tim template files - that is the best way to take advantage of them.

All the best

from ct-argon-dashboard-pro-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.