if (Request::isMethod('post'))
$tableName
php artisan make:controller / make:model
Tbh i have no idea how to use the API, its why i created a route in the web file, for the controllers, its easier for me to duplicate existing files, most files that i duplicate, require the same files so no junk data is in files (i hope)Nice to see Laravel being used, here are some minor tips.
Use migrations, they'll come in very handy later down the line. Setup seeders for default static data and then just migrate off your migrations.
You seem to be conditionally checkinga lot, there's a better way. Bind the route to the POST method, and the controllers method won't ever get hit on GET, PATCH, DELETE, etc.Code:if (Request::isMethod('post'))
Models, you seem to be declaring a protectedfor models that you don't have to. Laravel is smart enough to recognize the table name by the class name. As long as the class name is camel case with the parts of the table name, don't worry about giving a table name. I tend to never give one unless it fails or I know its going to fail.PHP:$tableName
Not sure if you have a good reason, but why are you declaring API routes in the web file? In case you didn't know, It has its own file, along with a lot of the confirmation ( prefix, middleware ) set up for you by Laravel out of the box.
One last thing, if I took a guess I would say you copy and paste your models and controllers. Start usingand you won't copy over so much junk data.Code:php artisan make:controller / make:model
All the best!
Jonty had an uber edit with working homes, Wesley had one with working homes as well. This was 2012+ish.Goldfish Legacy Theme will be soon getting Customizable Profiles with stickers, notes, and widgets
preview gif:You must be registered for see links
You must be registered for see images attach
Credits to HoloCMS for the catalogue base, included most stickers, modified to GoldFish's database structure, And Quackster's hotel ClassicHabbo for having the classic Homes for me to mimic for goldfish.
if voted for, this will be ported to GoldFish default theme
thanks
i believe this is the first public cms to get functioning homes since 2010? correct me if im wrong.
That is the debug screen when on a local environment. If you update your APP_ENV when in production, it will show a generic 500 page instead.Yum, exploits.