Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Category Laravel

How to update timestamp in pivot table in Laravel

When insert a new row to pivot table, we can use attach() method like this: $company = Company::find(1);$company->users()->attach(1); But this will not update created_at and updated_at timestamps column in pivot table. To update timestamps, use withTimestamps() method on the relationship…

Some Tips when using Entrust in Laravel

I got the problem when using bican/roles Role module in my Laravel project. There is an error when I check permission. So I decided to move zizaco/entrust and tested all features working normal. How to install Entrust Install use composer…

Troubleshooting after update to Homestead 0.5.0

Error 1 Maximum call stack size exceeded error Solution Update npm using sudo npm i npm -g command. Error 2 ENOENT: no such file or directory, scandir ‘/home/vagrant/app-name/node_modules/node-sass/vendor’ error Solution Execute npm rebuild node-sass –no-bin-links command. (Reference)

All about Laravel

Laravel is the best PHP framework for develop web application. Official Links Laravel Official Website Laravel Source Code – GitHub Laravel Documentation Video Tutorials Laracast

Class memcached not found error in Laravel

If you got bellow error when use memcached in Laravel, please check following steps. exception ‘SymfonyComponentDebugExceptionFatalErrorException’ with message ‘Class ‘Memcached’ not found’ in Install memcached $ sudo apt-get install php5-memcached memcached Enabled php5-memcached sudo php5enmod memcached Restart apache web…