I am currently working on a web site based on php + mariadb
, but recently I want to change the web site to laravel traffic
, but it is impossible to achieve it in the short term.
so I want to ask the great gods
how can I change the code to achieve the idea of laravel?
for example, I know
$do->query("SELECT ... ");
this is not done in laravel
- so how can I write a similar idea through php?
- there are no other laravel practices in php native? The interaction between the station and
css
,jquery
? - I now use
require_once
to introduce thephp
version of my plan, but I believe my thinking is still wrong. So you want to "poop" the principle of laravel? - how can some native code structures be improved?
- or is it because I think too much that I can change the existing web site to a laravel framework? If that doesn"t work, how to correctly improve the code structure and ideas?
charge
it seems that there is no way to change it directly, so we can only write one again with laravel?
is there any problem that can be violated by php natively, which can be written in a laravel-like way of thinking?