Thursday, April 13, 2017

How to add only one data in database table in laravel

I am creating a site and i am making a general option page for the site that include the site name, logo, social links so that i can manage them dynamically from one place without changing the links and text in all pages where i called them.

What I want is that the table i created in database, i want to have only one row in it. If someone try to add other row of data it should not be added because i have to call only one data for the site.

I hope the query is clear to all. Thanks for your support. Help me if u can. please :)



via Omi kabira

Advertisement